summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-15 11:28:37 +0100
committerAzul <azul@leap.se>2013-01-15 11:28:37 +0100
commitbe8ee9fa669bc5554796be1fc99867fc99ba21bc (patch)
tree0f5a1ba088feff6897bf0a4fa0cc4e74c7b97937 /users
parente7d36df945792b292732e25e879a90577050a6c1 (diff)
reverted simplification - not good to have 'none set' in a %ul
Diffstat (limited to 'users')
-rw-r--r--users/app/views/users/show.html.haml8
1 files changed, 6 insertions, 2 deletions
diff --git a/users/app/views/users/show.html.haml b/users/app/views/users/show.html.haml
index d8b51e9..ec5cea6 100644
--- a/users/app/views/users/show.html.haml
+++ b/users/app/views/users/show.html.haml
@@ -12,8 +12,12 @@
%dt
=t :email_aliases
%dd
- %ul.pull-left.unstyled
- = render(@user.email_aliases) || t(:none_set)
+ - aliases = @user.email_aliases
+ - if aliases.present?
+ %ul.pull-left.unstyled
+ = render aliases
+ - else
+ =t :none_set
.clearfix
%dt
=t :most_recently_updated_tickets