From b348f9dbf3b8298e0e76bda6a9da973da25ed9bd Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 17 Jan 2013 17:35:39 +0100 Subject: more flexible email partial --- users/app/views/emails/_email.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'users/app/views/emails') diff --git a/users/app/views/emails/_email.html.haml b/users/app/views/emails/_email.html.haml index e96385d..c81b396 100644 --- a/users/app/views/emails/_email.html.haml +++ b/users/app/views/emails/_email.html.haml @@ -1,6 +1,6 @@ -%li.pull-right - %code= email - - if params[:action] == 'edit' += wrapped(email, local_assigns) do + = email + - if local_assigns[:with].try(:include?, :delete) = link_to(user_email_alias_path(@user, email), :method => :delete) do %i.icon-remove .clearfix -- cgit v1.2.3