summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-17 16:28:52 +0100
committerAzul <azul@leap.se>2013-01-17 16:28:52 +0100
commit247a6f14db14543773beb1a1e96f2c335800eb82 (patch)
tree5cf0740eb4ffd3ec836c146ef6ab2fd2955ca4fb /users/app/views
parenta8ec73a0307924610023525786bb3a9eb8b173e1 (diff)
minor fixes to validation workflow
Diffstat (limited to 'users/app/views')
-rw-r--r--users/app/views/emails/_email.html.haml11
-rw-r--r--users/app/views/users/edit.html.haml2
2 files changed, 6 insertions, 7 deletions
diff --git a/users/app/views/emails/_email.html.haml b/users/app/views/emails/_email.html.haml
index 3feb6f0..f5eb2d0 100644
--- a/users/app/views/emails/_email.html.haml
+++ b/users/app/views/emails/_email.html.haml
@@ -1,6 +1,5 @@
-- if email.valid?
- %li.pull-right
- %code= email
- = link_to(user_email_alias_path(@user, email), :method => :delete) do
- %i.icon-remove
- .clearfix
+%li.pull-right
+ %code= email
+ = link_to(user_email_alias_path(@user, email), :method => :delete) do
+ %i.icon-remove
+.clearfix
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml
index 3f62e5f..69864e5 100644
--- a/users/app/views/users/edit.html.haml
+++ b/users/app/views/users/edit.html.haml
@@ -7,7 +7,7 @@
- content_for :email do
%legend=t :email_address
Your email address is
- = user.email_address
+ = render user.email_address
= user_form_with 'email_forward_field', :legend => :forward_email
= user_form_with 'email_aliases', :legend => :add_email_alias
= render 'tabs/tabs', :tabs => [:account, :email]