Merge branch 'master' of git.workaround.org:chaas/debshots
This commit is contained in:
commit
1c05dc26a6
3 changed files with 7 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ class ModerateController < ApplicationController
|
|||
# Number of screenshots that were already moderated (during this session)
|
||||
session[:already_moderated] ||= 0
|
||||
@moderated_screenshots = session[:already_moderated]
|
||||
|
||||
# BUG: calculation is wrong when pending and reported screenshots are in the queue
|
||||
# Percentage of already moderated screenshots
|
||||
@percent_moderated = 100 * (@moderated_screenshots+1) / (@moderated_screenshots + @pending_screenshots.count)
|
||||
# @percent_moderated = 100 * (@moderated_screenshots+1) / (@moderated_screenshots + @pending_screenshots.count + @reported_screenshots.count)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
p.progress-meter-text #{@percent_moderated}%
|
||||
|
||||
h2 Package: #{@package.name}
|
||||
p =@package.description
|
||||
|
||||
// Show moderation queue left - and existing screenshots right
|
||||
.row.packagepage
|
||||
|
|
|
|||
|
|
@ -83,6 +83,10 @@
|
|||
a.expand data-open="upload-modal"
|
||||
= fa_icon 'upload'
|
||||
' Upload more screenshots
|
||||
p
|
||||
' Please help extend the collection of screenshots.
|
||||
' Just make a screenshot and upload it here. You don't
|
||||
' need to register or anything.
|
||||
// Modal upload window
|
||||
#upload-modal.reveal data-reveal=true role='dialog'
|
||||
h1 Upload new screenshots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue