debshots/app/views/moderate/index.slim

38 lines
1.6 KiB
Text

.row
h1 Moderation queue
- if @package
// Progress bar
.progress.warning role="progressbar" tabindex="0" aria-valuenow="20" aria-valuemin="0" aria-valuetext="25 percent" aria-valuemax="100"
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|
.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
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:
- @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.