annotate app/views/users/_mail_notifications.html.erb @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 433d4f72a19b
children 261b3d9a4903
rev   line source
chris@37 1 <p>
Chris@909 2 <%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %>
Chris@1115 3 <%= select_tag(
Chris@1115 4 'user[mail_notification]',
Chris@1115 5 options_for_select(
Chris@1115 6 user_mail_notification_options(@user), @user.mail_notification),
Chris@1115 7 :onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}'
Chris@1115 8 ) %>
chris@37 9 </p>
Chris@1115 10 <%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
Chris@1115 11 <%= render_project_nested_lists(@user.projects) do |project|
Chris@1115 12 content_tag('label',
Chris@1115 13 check_box_tag(
Chris@1115 14 'notified_project_ids[]',
Chris@1115 15 project.id,
Chris@1115 16 @user.notified_projects_ids.include?(project.id)
Chris@1115 17 ) + ' ' + h(project.name)
Chris@1115 18 )
Chris@1115 19 end %>
Chris@1115 20 <p><em class="info"><%= l(:text_user_mail_option) %></em></p>
chris@37 21 <% end %>
Chris@1115 22 <p>
Chris@1115 23 <label>
Chris@1115 24 <%= l(:label_user_mail_no_self_notified) %>
Chris@1115 25 <%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %>
Chris@1115 26 </label>
Chris@1115 27 </p>