diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-25 01:43:52 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-25 01:43:52 +0100 |
commit | ebb0912516bf04e18fd016b3c46e913ddbd630b9 (patch) | |
tree | dafe8690b31680fad5af0873712f71690863edac /app/models/user.rb | |
parent | 874496b326721bd76dbdd90988f03db2ef8494ca (diff) |
Show ban text in public.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index d648fef3f..45b2b3836 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -116,9 +116,6 @@ class User < ActiveRecord::Base if not name.nil? name.strip! end - if self.public_banned? - name = name + " (Banned)" - end name end @@ -275,6 +272,7 @@ class User < ActiveRecord::Base text = self.ban_text.strip text = CGI.escapeHTML(text) text = MySociety::Format.make_clickable(text, :contract => 1) + text = text.gsub(/\n/, '<br>') return text end |