From 174a2567df0cc646442790a0b99d5d36ac846106 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 13 Jun 2016 17:54:37 +0200 Subject: [PATCH] Moderation view fixed. --- app/views/moderate/index.slim | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/app/views/moderate/index.slim b/app/views/moderate/index.slim index a683791..9ce0f98 100644 --- a/app/views/moderate/index.slim +++ b/app/views/moderate/index.slim @@ -15,30 +15,32 @@ .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 + .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 - .button-group - / TODO: Add a reason for the rejection to tell the user - a.button.alert.round Reject - a.button.success.round Approve + / 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 Remove as requested - a.button.success.round Keep the screenshot + / 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 - .row.listview + .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