Added colors to status label of a screenshot
This commit is contained in:
parent
27a1811153
commit
f31502c333
4 changed files with 31 additions and 13 deletions
|
|
@ -1,11 +1,22 @@
|
|||
// Button that reveals a dropdown/modal for moderation/reporting
|
||||
|
||||
- if can?(:destroy, screenshot) || can?(:approve, screenshot)
|
||||
.text
|
||||
span.label.secondary.adminlabel
|
||||
= status_text(screenshot)
|
||||
|
||||
.button-group.small.align-center
|
||||
- if can?(:destroy, screenshot) || can?(:approve, screenshot)
|
||||
.text
|
||||
- @statustext, @statuscolor = status(screenshot)
|
||||
span class="label adminlabel #{@statuscolor}"
|
||||
= @statustext
|
||||
|
||||
- if can?(:hide, screenshot)
|
||||
a.button.small.bordered.radius.warning[
|
||||
href=hide_screenshot_path(screenshot.id)
|
||||
onclick="return confirm('Really hide the screenshot from public view?');"
|
||||
] #{fa_icon 'eye-slash'} Hide
|
||||
|
||||
- if can?(:unhide, screenshot)
|
||||
a.button.small.bordered.radius.warning[
|
||||
href=unhide_screenshot_path(screenshot.id)
|
||||
] #{fa_icon 'eye'} Un-Hide
|
||||
|
||||
- if can?(:destroy, screenshot)
|
||||
a.button.small.bordered.radius.alert[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue