Patch #12850 » user_mail_notifications_by_project_with_project_links_V_1.2.1.diff
| app/views/users/_mail_notifications.html.erb (copie de travail) | ||
|---|---|---|
|
</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[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br />
|
||
|
<label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%= link_to_project project %></label><br />
|
||
|
<% end %></p>
|
||
|
<p><em><%= l(:text_user_mail_option) %></em></p>
|
||
|
<% end %>
|
||