summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/app/views/users/show.html.haml10
-rw-r--r--users/config/locales/en.yml1
2 files changed, 4 insertions, 7 deletions
diff --git a/users/app/views/users/show.html.haml b/users/app/views/users/show.html.haml
index 2b59c66..d8b51e9 100644
--- a/users/app/views/users/show.html.haml
+++ b/users/app/views/users/show.html.haml
@@ -12,16 +12,12 @@
%dt
=t :email_aliases
%dd
- - aliases = @user.email_aliases
- - if aliases.empty?
- none set
- - else
- .pull-left
- = render aliases
+ %ul.pull-left.unstyled
+ = render(@user.email_aliases) || t(:none_set)
.clearfix
%dt
=t :most_recently_updated_tickets
%dd
%table
%tbody
- = render @user.most_recent_tickets \ No newline at end of file
+ = render @user.most_recent_tickets
diff --git a/users/config/locales/en.yml b/users/config/locales/en.yml
index 3c71e7e..7aa23f1 100644
--- a/users/config/locales/en.yml
+++ b/users/config/locales/en.yml
@@ -1,4 +1,5 @@
en:
+ none_set: "None set."
signup: "Sign up"
signup_message: "Please create an account."
cancel: "Cancel"