Old moderation view removed
This commit is contained in:
parent
31b19f3a2c
commit
006a85a8a5
1 changed files with 0 additions and 45 deletions
|
|
@ -1,45 +0,0 @@
|
||||||
.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=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
|
|
||||||
|
|
||||||
|
|
||||||
.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=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.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue