Move the render replies button into the post-controls div with the other buttons

This commit is contained in:
Neil Lalonde 2013-06-14 17:38:43 -04:00
parent a650593f89
commit 07e4cba281
2 changed files with 5 additions and 3 deletions

View file

@ -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);
});

View file

@ -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;