mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
closes #799
This commit is contained in:
@@ -150,21 +150,21 @@ define(['composer'], function(composer) {
|
||||
}
|
||||
|
||||
var recentReplies = $('#category_recent_replies');
|
||||
var reply;
|
||||
var replies = '';
|
||||
for (var i = 0, numPosts = posts.length; i < numPosts; ++i) {
|
||||
|
||||
reply = $('<li data-pid="'+ posts[i].pid +'">' +
|
||||
replies += '<li data-pid="'+ posts[i].pid +'">' +
|
||||
'<a href="' + RELATIVE_PATH + '/user/' + posts[i].userslug + '"><img title="' + posts[i].username + '" class="img-rounded user-img" src="' + posts[i].picture + '"/></a>' +
|
||||
'<a href="' + RELATIVE_PATH + '/topic/' + posts[i].topicSlug + '#' + posts[i].pid + '">' +
|
||||
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
||||
'<p>' + posts[i].content + '</p>' +
|
||||
'</a>' +
|
||||
'<span class="timeago pull-right" title="' + posts[i].relativeTime + '"></span>' +
|
||||
'</li>');
|
||||
|
||||
recentReplies.append(reply);
|
||||
'</li>';
|
||||
}
|
||||
|
||||
recentReplies.html(replies);
|
||||
|
||||
$('#category_recent_replies span.timeago').timeago();
|
||||
app.createUserTooltips();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user