.grid-container h1 Moderation queue - if @package // Progress bar // TODO: Calculation for the progress bar is currently wrong / .progress.warning role="progressbar" tabindex="0" / span.progress-meter style="width: #{@percent_moderated}%" / p.progress-meter-text #{@percent_moderated}% h2 Package: #{@package.name} p =@package.description // Show moderation queue left - and existing screenshots right .grid-x.packagepage .small-6.cell p Please moderate: - @pending_screenshots.each do |screenshot| .container.listview / = screenshot.status a.black.fancybox href=rails_representation_url(screenshot.image.variant("800x600")) rel='fancybox-thumb' title=screenshot.caption = image_tag(screenshot.image.variant("800x600"), 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) onclick="return confirm('Really delete the 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) onclick="return confirm('Really delete the screenshot?');" Remove as requested a.button.success.round href=approve_screenshot_path(screenshot) Keep the screenshot .small-6.cell p Existing screenshots: - @package.screenshots.each do |screenshot| - if screenshot.approved==true and screenshot.markedfordelete==false .container.listview a.black.fancybox href=rails_representation_url(screenshot.image.variant("800x600", timestamp: false)) rel='fancybox-thumb' title=screenshot.caption = image_tag(screenshot.image.variant("800x600"), alt: screenshot.caption) .imgcaption =screenshot.caption - else p No screenshots left in the moderation queue. Great.