mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
blocked
This commit is contained in:
@@ -165,6 +165,25 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var recentReplies = $('#category_recent_replies');
|
var recentReplies = $('#category_recent_replies');
|
||||||
|
|
||||||
|
|
||||||
|
// doesnt work see https://github.com/designcreateplay/NodeBB/issues/893
|
||||||
|
/*
|
||||||
|
templates.preload_template('recentreplies', function() {
|
||||||
|
|
||||||
|
var html = templates.prepare(templates['recentreplies'].blocks['posts']).parse({
|
||||||
|
posts: posts
|
||||||
|
});
|
||||||
|
|
||||||
|
translator.translate(html, function(translatedHTML) {
|
||||||
|
recentReplies.html(translatedHTML);
|
||||||
|
|
||||||
|
$('#category_recent_replies span.timeago').timeago();
|
||||||
|
app.createUserTooltips();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
var replies = '';
|
var replies = '';
|
||||||
for (var i = 0, numPosts = posts.length; i < numPosts; ++i) {
|
for (var i = 0, numPosts = posts.length; i < numPosts; ++i) {
|
||||||
|
|
||||||
|
|||||||
14
public/templates/recentreplies.tpl
Normal file
14
public/templates/recentreplies.tpl
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
<!-- BEGIN posts -->
|
||||||
|
<li data-pid="{posts.pid}" class="clearfix">
|
||||||
|
<a href="{relative_path}/user/{posts.userslug}">
|
||||||
|
<img title="{posts.username}" class="img-rounded user-img" src="{posts.picture}" />
|
||||||
|
</a>
|
||||||
|
<strong><span>{posts.username}</span></strong>
|
||||||
|
<p>posts.content</p>
|
||||||
|
<span class="pull-right">
|
||||||
|
<a href="{relative_path}/topic/{posts.topicSlug}#{posts.pid}">[[category:posted]]</a>
|
||||||
|
<span class="timeago" title="{posts.relativeTime}"></span>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<!-- END posts -->
|
||||||
Reference in New Issue
Block a user