Move the render replies button into the post-controls div with the other buttons
This commit is contained in:
parent
a650593f89
commit
07e4cba281
|
@ -12,11 +12,11 @@ Discourse.PostMenuView = Discourse.View.extend({
|
|||
|
||||
render: function(buffer) {
|
||||
var post = this.get('post');
|
||||
this.renderReplies(post, buffer);
|
||||
buffer.push("<nav class='post-controls'>");
|
||||
this.renderReplies(post, buffer);
|
||||
|
||||
var postMenuView = this;
|
||||
Discourse.get('postButtons').forEach(function(button) {
|
||||
Discourse.get('postButtons').toArray().reverse().forEach(function(button) {
|
||||
var renderer = "render" + button;
|
||||
if(postMenuView[renderer]) postMenuView[renderer](post, buffer);
|
||||
});
|
||||
|
|
|
@ -258,7 +258,6 @@
|
|||
@include box-shadow(inset 0 -4px 4px -4px rgba($black, 0.14));
|
||||
nav.post-controls {
|
||||
@include unselectable;
|
||||
float: right;
|
||||
padding: 0px;
|
||||
button {
|
||||
border: none;
|
||||
|
@ -280,6 +279,9 @@
|
|||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
&.like, &.edit, &.flag, &.delete, &.share, &.bookmark, &.create {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
button.create {
|
||||
color: $attention_fg;
|
||||
|
|
Loading…
Reference in New Issue