This commit is contained in:
albert
2013-03-09 11:08:06 -05:00
parent f4dce831e8
commit 73edc3c86f
3 changed files with 10 additions and 17 deletions

View File

@@ -50,12 +50,9 @@ class UserPresenter
string = "base:10 + approved:(#{approved_count} / 10) - deleted:(#{deleted_count}) / 4 - pending:#{pending_count}"
end
if limit >= 20
limit = 20
string += " = capped:20"
elsif limit < 0
if limit < 0
limit = 0
string += " = capped:0"
string += " = 0"
else
string += " = #{limit}"
end