aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-08-01 10:06:28 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-08-01 10:06:28 +0100
commit38029517f95d42539dad12db748b789574a8207b (patch)
treef0213460bce04168ee855770c4bbb35bb5fff047 /app/models/user.rb
parentba01cc9a8b8dd6edf1e1017d170f2b71a3f93473 (diff)
User's display name should indicate if they've been banned. Fixes #100.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index e29ae3101..fddb6b035 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -118,6 +118,9 @@ class User < ActiveRecord::Base
if not name.nil?
name.strip!
end
+ if self.public_banned?
+ name = _("{{user_name}} (Banned)", :user_name=>name)
+ end
name
end