Moved moderation code to new moderate controller

This commit is contained in:
Christoph Haas 2016-04-14 16:49:17 +02:00
parent b32f26a1b8
commit a153391615
12 changed files with 79 additions and 48 deletions

View file

@ -23,10 +23,6 @@
- elsif screenshot.approved
= render(partial: 'report_dropdown', locals: {screenshot: screenshot})
// Anonymous users can see their own screenshots
/ - if not screenshot.approved
- else
.row.listview
img src='/images/dummy/no-screenshots-available.svg' width='100%' style='padding: 0 10%'

View file

@ -1,19 +0,0 @@
// TODO: Show progressbar of how far the admin went through the moderation queue
.row
h1 Moderation queue
// 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}%
// Package list
.row.packagepage
.small-9.medium-10.columns
- if @pending_screenshots.length>0
- @pending_screenshots.each do |screenshot|
= screenshot.id
- else
p No screenshots left in the moderation queue. Great.