Display a projects tree instead of a flat list in notification preferences (#11539).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10189 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -9,17 +9,15 @@
|
||||
</p>
|
||||
<%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
||||
<p>
|
||||
<% @user.projects.each do |project| %>
|
||||
<label>
|
||||
<%= check_box_tag(
|
||||
'notified_project_ids[]',
|
||||
<%= render_project_nested_lists(@user.projects) do |project|
|
||||
content_tag('label',
|
||||
check_box_tag(
|
||||
'notified_project_ids[]',
|
||||
project.id,
|
||||
@user.notified_projects_ids.include?(project.id)
|
||||
) %>
|
||||
<%= h(project.name) %>
|
||||
</label>
|
||||
<br />
|
||||
<% end %>
|
||||
) + ' ' + h(project.name)
|
||||
)
|
||||
end %>
|
||||
</p>
|
||||
<p><em class="info"><%= l(:text_user_mail_option) %></em></p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user