diff options
author | azul <azul@riseup.net> | 2013-01-20 23:41:11 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-01-20 23:41:11 -0800 |
commit | ed1caa740f0e58cfd5f2d908946461154db68174 (patch) | |
tree | d4481ebc868bb1169ba40f7bf9f21d984e3e0560 /users/app/views/emails | |
parent | 168c36b578d675c99aad62a350aa68cc1b6d1316 (diff) | |
parent | b348f9dbf3b8298e0e76bda6a9da973da25ed9bd (diff) |
Merge pull request #19 from leapcode/feature/partial-refactor
more flexible email partial
Diffstat (limited to 'users/app/views/emails')
-rw-r--r-- | users/app/views/emails/_email.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
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 |