mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
show no replies in recent and unread
This commit is contained in:
@@ -288,6 +288,15 @@ var socket,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.createUserTooltips = function() {
|
||||||
|
$('img[title].teaser-pic,img[title].user-img').each(function() {
|
||||||
|
$(this).tooltip({
|
||||||
|
placement: 'top',
|
||||||
|
title: $(this).attr('title')
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
app.processPage = function () {
|
app.processPage = function () {
|
||||||
app.populateOnlineUsers();
|
app.populateOnlineUsers();
|
||||||
|
|
||||||
@@ -296,6 +305,8 @@ var socket,
|
|||||||
$('span.timeago').timeago();
|
$('span.timeago').timeago();
|
||||||
$('.post-content img').addClass('img-responsive');
|
$('.post-content img').addClass('img-responsive');
|
||||||
|
|
||||||
|
app.createUserTooltips();
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
window.scrollTo(0, 1); // rehide address bar on mobile after page load completes.
|
window.scrollTo(0, 1); // rehide address bar on mobile after page load completes.
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ define(function () {
|
|||||||
li.setAttribute('data-pid', posts[i].pid);
|
li.setAttribute('data-pid', posts[i].pid);
|
||||||
|
|
||||||
|
|
||||||
li.innerHTML = '<a href="/user/' + posts[i].userslug + '"><img title="' + posts[i].username + '" style="width: 48px; height: 48px; /*temporary*/" class="img-rounded" src="' + posts[i].picture + '" class="" /></a>' +
|
li.innerHTML = '<a href="/user/' + posts[i].userslug + '"><img title="' + posts[i].username + '" style="width: 48px; height: 48px; /*temporary*/" class="img-rounded user-img" src="' + posts[i].picture + '" class="" /></a>' +
|
||||||
'<a href="/topic/' + posts[i].topicSlug + '#' + posts[i].pid + '">' +
|
'<a href="/topic/' + posts[i].topicSlug + '#' + posts[i].pid + '">' +
|
||||||
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
||||||
'<p>' +
|
'<p>' +
|
||||||
@@ -68,6 +68,7 @@ define(function () {
|
|||||||
recent_replies.appendChild(frag);
|
recent_replies.appendChild(frag);
|
||||||
}
|
}
|
||||||
$('#category_recent_replies span.timeago').timeago();
|
$('#category_recent_replies span.timeago').timeago();
|
||||||
|
app.createUserTooltips();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).off('scroll').on('scroll', function (ev) {
|
$(window).off('scroll').on('scroll', function (ev) {
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="block-content active-users">
|
<div class="block-content active-users">
|
||||||
<!-- BEGIN active_users -->
|
<!-- BEGIN active_users -->
|
||||||
<a data-uid="{active_users.uid}" href="/user/{active_users.userslug}"><img title="{active_users.username}" src="{active_users.picture}" class="img-rounded" /></a>
|
<a data-uid="{active_users.uid}" href="/user/{active_users.userslug}"><img title="{active_users.username}" src="{active_users.picture}" class="img-rounded user-img" /></a>
|
||||||
<!-- END active_users -->
|
<!-- END active_users -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -54,6 +54,9 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="pull-right hidden-xs">
|
<span class="pull-right hidden-xs">
|
||||||
|
<!-- IF topics.unreplied -->
|
||||||
|
No one has replied
|
||||||
|
<!-- ELSE -->
|
||||||
<a href="/user/{topics.teaser_userslug}">
|
<a href="/user/{topics.teaser_userslug}">
|
||||||
<img class="teaser-pic" src="{topics.teaser_userpicture}" title="{topics.teaser_username}"/>
|
<img class="teaser-pic" src="{topics.teaser_userpicture}" title="{topics.teaser_username}"/>
|
||||||
</a>
|
</a>
|
||||||
@@ -61,7 +64,7 @@
|
|||||||
replied
|
replied
|
||||||
</a>
|
</a>
|
||||||
<span class="timeago" title="{topics.teaser_timestamp}"></span>
|
<span class="timeago" title="{topics.teaser_timestamp}"></span>
|
||||||
|
<!-- ENDIF topics.unreplied -->
|
||||||
</span>
|
</span>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -49,14 +49,17 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="pull-right hidden-xs">
|
<span class="pull-right hidden-xs">
|
||||||
|
<!-- IF topics.unreplied -->
|
||||||
|
No one has replied
|
||||||
|
<!-- ELSE -->
|
||||||
<a href="/user/{topics.teaser_userslug}">
|
<a href="/user/{topics.teaser_userslug}">
|
||||||
<img class="img-rounded teaser-pic" src="{topics.teaser_userpicture}" title="{topics.teaser_username}"/>
|
<img class="teaser-pic" src="{topics.teaser_userpicture}" title="{topics.teaser_username}"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="../../topic/{topics.slug}#{topics.teaser_pid}">
|
<a href="../../topic/{topics.slug}#{topics.teaser_pid}">
|
||||||
replied
|
replied
|
||||||
</a>
|
</a>
|
||||||
<span class="timeago" title="{topics.teaser_timestamp}"></span>
|
<span class="timeago" title="{topics.teaser_timestamp}"></span>
|
||||||
|
<!-- ENDIF topics.unreplied -->
|
||||||
</span>
|
</span>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user