mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #799
This commit is contained in:
@@ -150,21 +150,21 @@ define(['composer'], function(composer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var recentReplies = $('#category_recent_replies');
|
var recentReplies = $('#category_recent_replies');
|
||||||
var reply;
|
var replies = '';
|
||||||
for (var i = 0, numPosts = posts.length; i < numPosts; ++i) {
|
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 + '/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 + '">' +
|
'<a href="' + RELATIVE_PATH + '/topic/' + posts[i].topicSlug + '#' + posts[i].pid + '">' +
|
||||||
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
'<strong><span>'+ posts[i].username + '</span></strong>' +
|
||||||
'<p>' + posts[i].content + '</p>' +
|
'<p>' + posts[i].content + '</p>' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
'<span class="timeago pull-right" title="' + posts[i].relativeTime + '"></span>' +
|
'<span class="timeago pull-right" title="' + posts[i].relativeTime + '"></span>' +
|
||||||
'</li>');
|
'</li>';
|
||||||
|
|
||||||
recentReplies.append(reply);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
recentReplies.html(replies);
|
||||||
|
|
||||||
$('#category_recent_replies span.timeago').timeago();
|
$('#category_recent_replies span.timeago').timeago();
|
||||||
app.createUserTooltips();
|
app.createUserTooltips();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ define(['taskbar'], function(taskbar) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
postContainer.on('click', '.formatting-bar button', function() {
|
postContainer.on('click', '.action-bar button', function() {
|
||||||
var action = $(this).attr('data-action');
|
var action = $(this).attr('data-action');
|
||||||
|
|
||||||
switch(action) {
|
switch(action) {
|
||||||
|
|||||||
@@ -17,15 +17,15 @@
|
|||||||
<input type="file" id="files" name="files[]" multiple class="hide"/>
|
<input type="file" id="files" name="files[]" multiple class="hide"/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group pull-right">
|
|
||||||
<button class="btn btn-default" data-action="discard" tabIndex="5"><i class="fa fa-times"></i> Discard</button>
|
|
||||||
<button data-action="post" class="btn btn-default" tabIndex="3"><i class="fa fa-check"></i> Submit</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a data-pane=".tab-write" data-toggle="tab">Write</a></li>
|
<li class="active"><a data-pane=".tab-write" data-toggle="tab">Write</a></li>
|
||||||
<li><a data-pane=".tab-preview" data-toggle="tab">Preview</a></li>
|
<li><a data-pane=".tab-preview" data-toggle="tab">Preview</a></li>
|
||||||
|
<li class="btn-group pull-right action-bar">
|
||||||
|
<button class="btn btn-default" data-action="discard" tabIndex="5"><i class="fa fa-times"></i> Discard</button>
|
||||||
|
<button data-action="post" class="btn btn-default" tabIndex="3"><i class="fa fa-check"></i> Submit</button>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
|
|||||||
Reference in New Issue
Block a user