add more delete button styles on delete.. buttons
This commit is contained in:
parent
eb188c57e8
commit
c1a50aae04
|
@ -156,7 +156,7 @@
|
|||
<div class='value'>{{content.post_count}}</div>
|
||||
<div class='controls'>
|
||||
{{#if content.can_delete_all_posts}}
|
||||
<button class='btn' {{action deleteAllPosts target="content"}}>
|
||||
<button class='btn btn-danger' {{action deleteAllPosts target="content"}}>
|
||||
<i class='icon icon-trash'></i>
|
||||
{{i18n admin.user.delete_all_posts}}
|
||||
</button>
|
||||
|
|
|
@ -54,9 +54,9 @@ window.Discourse.PostMenuView = Ember.View.extend Discourse.Presence,
|
|||
# Show the correct button
|
||||
if post.get('deleted_at')
|
||||
if post.get('can_recover')
|
||||
buffer.push("<button title=\"#{Em.String.i18n("post.controls.undelete")}\" data-action=\"recover\"><i class=\"icon-undo\"></i></button>")
|
||||
buffer.push("<button title=\"#{Em.String.i18n("post.controls.undelete")}\" data-action=\"recover\" class=\"delete\"><i class=\"icon-undo\"></i></button>")
|
||||
else if post.get('can_delete')
|
||||
buffer.push("<button title=\"#{Em.String.i18n("post.controls.delete")}\" data-action=\"delete\"><i class=\"icon-trash\"></i></button>")
|
||||
buffer.push("<button title=\"#{Em.String.i18n("post.controls.delete")}\" data-action=\"delete\" class=\"delete\"><i class=\"icon-trash\"></i></button>")
|
||||
|
||||
clickDeleteTopic: -> @get('controller').deleteTopic()
|
||||
clickRecover: -> @get('controller').recoverPost(@get('post'))
|
||||
|
|
|
@ -279,7 +279,12 @@
|
|||
}
|
||||
}
|
||||
button.delete {
|
||||
&:hover {
|
||||
color: white;
|
||||
background-color: $btn-danger-background-color;
|
||||
}
|
||||
}
|
||||
|
||||
button.like {
|
||||
&:hover {
|
||||
color: $nav-like-button-color-hover;
|
||||
|
|
Loading…
Reference in New Issue