Moved Screenshot.adminstatus to status_text helper

This change allows the use of fa_icon helpers
This commit is contained in:
Christoph Haas 2020-11-23 00:21:17 +01:00
parent 5fedf92661
commit 427cdf87d7
3 changed files with 22 additions and 11 deletions

View file

@ -34,8 +34,7 @@
hr
.text
span.label.secondary
' Status:
= screenshot.adminstatus
= status_text(screenshot)
= render(partial: 'admin_buttons', locals: {screenshot: screenshot})
/ - elsif user_signed_in? and screenshot.user == current_user