summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-29 09:11:16 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-29 09:11:16 +0100
commit5f603012881517483df0c9e4473d0aacdde66655 (patch)
treea2203eeaf2899cbb14cfefe489e7998fd6a8cf02
parent9120e75e3cf52af0b395615621727ca418229f29 (diff)
Add a mail_to for the user's e-mail address.
-rw-r--r--app/views/users/show.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index 639a52a..c63c791 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -16,14 +16,14 @@
%tbody
%tr
%td
- %strong= t('users.show.user_name') + ":"
+ %strong= truncate(t('users.show.user_name'), :length => 7) + ":"
%td
= truncate(@user.user_name, :length => 14)
%tr
%td
- %strong= t('users.show.email') + ":"
+ %strong= truncate(t('users.show.email'), :length => 7) + ":"
%td
- = truncate(@user.email, :length => 14)
+ = mail_to @user.email, (Haml::Engine.new("%i.icon-envelope").render + ' ' + truncate(@user.email, :length => 16))
%p.controls
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @tenant, :child => @user }