mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Move the render replies button into the post-controls div with the other buttons
This commit is contained in:
parent
a650593f89
commit
07e4cba281
2 changed files with 5 additions and 3 deletions
|
@ -12,11 +12,11 @@ Discourse.PostMenuView = Discourse.View.extend({
|
||||||
|
|
||||||
render: function(buffer) {
|
render: function(buffer) {
|
||||||
var post = this.get('post');
|
var post = this.get('post');
|
||||||
this.renderReplies(post, buffer);
|
|
||||||
buffer.push("<nav class='post-controls'>");
|
buffer.push("<nav class='post-controls'>");
|
||||||
|
this.renderReplies(post, buffer);
|
||||||
|
|
||||||
var postMenuView = this;
|
var postMenuView = this;
|
||||||
Discourse.get('postButtons').forEach(function(button) {
|
Discourse.get('postButtons').toArray().reverse().forEach(function(button) {
|
||||||
var renderer = "render" + button;
|
var renderer = "render" + button;
|
||||||
if(postMenuView[renderer]) postMenuView[renderer](post, buffer);
|
if(postMenuView[renderer]) postMenuView[renderer](post, buffer);
|
||||||
});
|
});
|
||||||
|
|
|
@ -258,7 +258,6 @@
|
||||||
@include box-shadow(inset 0 -4px 4px -4px rgba($black, 0.14));
|
@include box-shadow(inset 0 -4px 4px -4px rgba($black, 0.14));
|
||||||
nav.post-controls {
|
nav.post-controls {
|
||||||
@include unselectable;
|
@include unselectable;
|
||||||
float: right;
|
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
button {
|
button {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -280,6 +279,9 @@
|
||||||
&.hidden {
|
&.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
&.like, &.edit, &.flag, &.delete, &.share, &.bookmark, &.create {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
button.create {
|
button.create {
|
||||||
color: $attention_fg;
|
color: $attention_fg;
|
||||||
|
|
Loading…
Reference in a new issue