From 3da2f6893852b3cca5c3e71422d4b09df136a2d2 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 5 Jun 2016 23:06:22 +0200 Subject: [PATCH] Improved moderation page --- app/views/moderate/index.slim | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/app/views/moderate/index.slim b/app/views/moderate/index.slim index 3ea4f21..a683791 100644 --- a/app/views/moderate/index.slim +++ b/app/views/moderate/index.slim @@ -4,7 +4,7 @@ - if @package // Progress bar - .progress.warning role="progressbar" tabindex="0" aria-valuenow="20" aria-valuemin="0" aria-valuetext="25 percent" aria-valuemax="100" + .progress.warning role="progressbar" tabindex="0" span.progress-meter style="width: #{@percent_moderated}%" p.progress-meter-text #{@percent_moderated}% @@ -15,15 +15,24 @@ .small-6.columns 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 + / = 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 - 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: