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='value'>{{content.post_count}}</div>
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
{{#if content.can_delete_all_posts}}
|
{{#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>
|
<i class='icon icon-trash'></i>
|
||||||
{{i18n admin.user.delete_all_posts}}
|
{{i18n admin.user.delete_all_posts}}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -54,9 +54,9 @@ window.Discourse.PostMenuView = Ember.View.extend Discourse.Presence,
|
||||||
# Show the correct button
|
# Show the correct button
|
||||||
if post.get('deleted_at')
|
if post.get('deleted_at')
|
||||||
if post.get('can_recover')
|
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')
|
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()
|
clickDeleteTopic: -> @get('controller').deleteTopic()
|
||||||
clickRecover: -> @get('controller').recoverPost(@get('post'))
|
clickRecover: -> @get('controller').recoverPost(@get('post'))
|
||||||
|
|
|
@ -279,7 +279,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
button.delete {
|
button.delete {
|
||||||
|
&:hover {
|
||||||
|
color: white;
|
||||||
|
background-color: $btn-danger-background-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button.like {
|
button.like {
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $nav-like-button-color-hover;
|
color: $nav-like-button-color-hover;
|
||||||
|
|
Loading…
Reference in New Issue