##// END OF EJS Templates
Adds links to changesets atom feed on repository browser (#1873)....
Adds links to changesets atom feed on repository browser (#1873). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1802 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1769:6ad989f82887
r1800:b73141a1537c
Show More
report.rhtml
45 lines | 1.8 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 <h2><%=l(:label_permissions_report)%></h2>
Jean-Philippe Lang
Some deprecation fixes (end_form_tag and count API)....
r665 <% form_tag({:action => 'report'}, :id => 'permissions_form') do %>
Jean-Philippe Lang
Adds checkboxes toggle links on permissions report....
r1769 <%= hidden_field_tag 'permissions[0]', '', :id => nil %>
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 <table class="list">
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <thead>
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 <tr>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <th><%=l(:label_permissions)%></th>
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 <% @roles.each do |role| %>
Jean-Philippe Lang
Adds checkboxes toggle links on permissions report....
r1769 <th>
<%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
</th>
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 <% end %>
</tr>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 </thead>
<tbody>
Jean-Philippe Lang
Added project module concept....
r714 <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
<% perms_by_module.keys.sort.each do |mod| %>
<% unless mod.blank? %>
Jean-Philippe Lang
Slight style update....
r759 <tr><%= content_tag('th', mod.humanize, :colspan => (@roles.size + 1), :align => 'left') %></tr>
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 <% end %>
Jean-Philippe Lang
Added project module concept....
r714 <% perms_by_module[mod].each do |permission| %>
Jean-Philippe Lang
Adds checkboxes toggle links on permissions report....
r1769 <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
<td>
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')",
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
<%= permission.name.to_s.humanize %>
</td>
Jean-Philippe Lang
Added project module concept....
r714 <% @roles.each do |role| %>
<td align="center">
<% if role.setable_permissions.include? permission %>
Jean-Philippe Lang
Adds checkboxes toggle links on permissions report....
r1769 <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name), :id => nil, :class => "role-#{role.id}" %>
Jean-Philippe Lang
Added project module concept....
r714 <% end %>
</td>
<% end %>
</tr>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <% end %>
<% end %>
Jean-Philippe Lang
Added permissions report (link available on roles list view)....
r430 </tbody>
</table>
<p><%= check_all_links 'permissions_form' %></p>
<p><%= submit_tag l(:button_save) %></p>
Jean-Philippe Lang
Some deprecation fixes (end_form_tag and count API)....
r665 <% end %>