user_mail_notifications_by_project_with_project_links_V_1.2.1.diff

Jérôme BATAILLE, 2013-01-15 10:52

Download (844 Bytes)

View differences:

app/views/users/_mail_notifications.html.erb (copie de travail)
4 4
</p>
5 5
<% content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
6 6
<p><% @user.projects.each do |project| %>
7
    <label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br />
7
    <label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%= link_to_project project %></label><br />
8 8
<% end %></p>
9 9
<p><em><%= l(:text_user_mail_option) %></em></p>
10 10
<% end %>