Two-column view of to-be-moderated and already-published screenshots
This commit is contained in:
parent
d0d9977cc2
commit
7e883eef9d
1 changed files with 16 additions and 3 deletions
|
|
@ -13,9 +13,22 @@
|
|||
// Show moderation queue left - and existing screenshots right
|
||||
.row.packagepage
|
||||
.small-6.columns
|
||||
- if @pending_screenshots.length>0
|
||||
p Pending approval to be published
|
||||
- @pending_screenshots.each do |screenshot|
|
||||
p Please moderate:
|
||||
- @pending_screenshots.each do |screenshot|
|
||||
.row.listview
|
||||
= screenshot.status
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
|
||||
ul.button-group.round
|
||||
li.button href="#" class="button alert round" Delete
|
||||
li.button href="#" class="button success round" Publish
|
||||
|
||||
.small-6.columns
|
||||
p Existing screenshots:
|
||||
- @package.screenshots.each do |screenshot|
|
||||
- if screenshot.approved==true and screenshot.markedfordelete==false
|
||||
.row.listview
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue