Show progressbar on moderation screen

This commit is contained in:
Christoph Haas 2016-04-08 18:25:53 +02:00
parent 57ee7c849c
commit f12f61b23c
3 changed files with 17 additions and 1 deletions

View file

@ -78,4 +78,9 @@ class Screenshot < ActiveRecord::Base
return text
end
# Return the number of screenshots that need to be approved
def self.unapproved
self.where(approved: false)
end
end