summaryrefslogtreecommitdiff
path: root/users/app/views/emails
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-14 12:39:59 -0800
committerjessib <jessib@leap.se>2013-01-14 12:39:59 -0800
commit8141876126aa25d713cf4b2c76c3ecff837c4ba7 (patch)
treedaa33640bd157a9ad080975bcc3e1dee686480f2 /users/app/views/emails
parentc2f232d994b3ee01ff9d50da1e4f3798df2136f3 (diff)
Use partials for displaying details shown when viewing a user. Some of these partials have specific CSS for another use, so we will likely want to tweak this.
Diffstat (limited to 'users/app/views/emails')
-rw-r--r--users/app/views/emails/_email.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/users/app/views/emails/_email.html.haml b/users/app/views/emails/_email.html.haml
index 3feb6f0..948d847 100644
--- a/users/app/views/emails/_email.html.haml
+++ b/users/app/views/emails/_email.html.haml
@@ -1,6 +1,7 @@
- if email.valid?
%li.pull-right
%code= email
- = link_to(user_email_alias_path(@user, email), :method => :delete) do
- %i.icon-remove
+ - if params[:action] == 'edit'
+ = link_to(user_email_alias_path(@user, email), :method => :delete) do
+ %i.icon-remove
.clearfix