From e1268faa4ae76d9ee2a4e6428e0e76e93df27620 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 28 May 2012 08:24:46 +0000 Subject: [PATCH] code layout cleanup app/views/users/_mail_notifications.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9735 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/users/_mail_notifications.html.erb | 34 +++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb index e25d426ee..85c3e2ecf 100644 --- a/app/views/users/_mail_notifications.html.erb +++ b/app/views/users/_mail_notifications.html.erb @@ -1,13 +1,31 @@

<%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %> -<%= select_tag 'user[mail_notification]', options_for_select(user_mail_notification_options(@user), @user.mail_notification), - :onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %> +<%= select_tag( + 'user[mail_notification]', + options_for_select( + user_mail_notification_options(@user), @user.mail_notification), + :onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' + ) %>

<%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %> -

<% @user.projects.each do |project| %> -
-<% end %>

-

<%= l(:text_user_mail_option) %>

+

+ <% @user.projects.each do |project| %> + +
+ <% end %> +

+

<%= l(:text_user_mail_option) %>

<% end %> -

- +

+ +