.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| / = 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 / New screenshot that needs to be approved? - if screenshot.approved==false .button-group / TODO: Add a reason for the rejection to tell the user a.button.alert.round Reject a.button.success.round Approve / Existing screenshots that was requested for removal - if screenshot.markedfordelete==true .button-group a.button.alert.round Remove as requested a.button.success.round Keep the screenshot .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) .imgcaption =screenshot.caption - else p No screenshots left in the moderation queue. Great.