49 lines
2.1 KiB
Text
49 lines
2.1 KiB
Text
.row
|
|
h1 Moderation queue
|
|
|
|
- if @package
|
|
|
|
// Progress bar
|
|
.progress.warning role="progressbar" tabindex="0"
|
|
span.progress-meter style="width: #{@percent_moderated}%"
|
|
p.progress-meter-text #{@percent_moderated}%
|
|
|
|
h2 Package: #{@package.name}
|
|
|
|
// Show moderation queue left - and existing screenshots right
|
|
.row.packagepage
|
|
.small-6.columns
|
|
p Please moderate:
|
|
- @pending_screenshots.each do |screenshot|
|
|
.container.listview.text-center
|
|
/ = 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
|
|
em.imgcaption =screenshot.adminstatus
|
|
|
|
/ New screenshot that needs to be approved?
|
|
- if screenshot.approved==false
|
|
div
|
|
/ TODO: Add a reason for the rejection to tell the user
|
|
a.button.alert.round href=delete_screenshot_path(screenshot) Reject
|
|
a.button.success.round href=approve_screenshot_path(screenshot) Approve
|
|
|
|
/ Existing screenshots that was requested for removal
|
|
- if screenshot.markedfordelete==true
|
|
.button-group
|
|
a.button.alert.round href=delete_screenshot_path(screenshot) Remove as requested
|
|
a.button.success.round href=approve_screenshot_path(screenshot) Keep the screenshot
|
|
|
|
|
|
.small-6.columns
|
|
p Existing screenshots:
|
|
- @package.screenshots.each do |screenshot|
|
|
- if screenshot.approved==true and screenshot.markedfordelete==false
|
|
.container.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)
|
|
.imgcaption =screenshot.caption
|
|
|
|
- else
|
|
p No screenshots left in the moderation queue. Great.
|