Added colors to status label of a screenshot

This commit is contained in:
Christoph Haas 2021-03-10 01:04:06 +01:00
parent 27a1811153
commit f31502c333
4 changed files with 31 additions and 13 deletions

View file

@ -19,6 +19,8 @@
- @divclasses << (screenshot.approved ? "approved" : "unapproved")
- @divclasses << 'highlight' if screenshot.id == @highlight_id
div class=(@divclasses.join(' ')) data-equalizer-watch=true
/ TODO: try to alight the buttons to the bottom
= render(partial: 'admin_buttons', locals: {screenshot: screenshot})
a.black href =url_for(screenshot.simage_url(:large)) rel='fancybox-thumb' title=screenshot.caption data-fancybox='gallery' data-caption=screenshot_caption(screenshot)
.image.image-with-zoom-icon
= small_img(screenshot, cls: '')
@ -34,7 +36,6 @@
' Uploaded by you
- unless screenshot.approved
' (needs to be approved)
= render(partial: 'admin_buttons', locals: {screenshot: screenshot})
// Second paginator at the bottom so the user does not have to scroll up again