annotate .svn/pristine/c1/c10e9a1142bb5d5518887fd1a88ba99ec4614876.svn-base @ 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 |
622f24f53b42 |
children |
|
rev |
line source |
Chris@1295
|
1 <p>
|
Chris@1295
|
2 <%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %>
|
Chris@1295
|
3 <%= select_tag(
|
Chris@1295
|
4 'user[mail_notification]',
|
Chris@1295
|
5 options_for_select(
|
Chris@1295
|
6 user_mail_notification_options(@user), @user.mail_notification),
|
Chris@1295
|
7 :onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}'
|
Chris@1295
|
8 ) %>
|
Chris@1295
|
9 </p>
|
Chris@1295
|
10 <%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
Chris@1295
|
11 <%= render_project_nested_lists(@user.projects) do |project|
|
Chris@1295
|
12 content_tag('label',
|
Chris@1295
|
13 check_box_tag(
|
Chris@1295
|
14 'notified_project_ids[]',
|
Chris@1295
|
15 project.id,
|
Chris@1295
|
16 @user.notified_projects_ids.include?(project.id)
|
Chris@1295
|
17 ) + ' ' + h(project.name)
|
Chris@1295
|
18 )
|
Chris@1295
|
19 end %>
|
Chris@1295
|
20 <p><em class="info"><%= l(:text_user_mail_option) %></em></p>
|
Chris@1295
|
21 <% end %>
|
Chris@1295
|
22 <p>
|
Chris@1295
|
23 <label>
|
Chris@1295
|
24 <%= l(:label_user_mail_no_self_notified) %>
|
Chris@1295
|
25 <%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %>
|
Chris@1295
|
26 </label>
|
Chris@1295
|
27 </p>
|