layout tweaks

This commit is contained in:
albert
2013-02-22 15:21:53 -05:00
parent ad28a2cced
commit 85a832cb5d
4 changed files with 10 additions and 3 deletions

View File

@@ -42,6 +42,10 @@ class UserPresenter
end
def upload_limit
if user.is_contributor?
return "none"
end
deleted_count = Post.for_user(user.id).deleted.count
pending_count = Post.for_user(user.id).pending.count
approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ?", user.id).count