Slight change to the permissions report view, with folding support.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2725 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-05-10 10:43:19 +00:00
parent 9f59538241
commit 814e138c2a
1 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,12 @@
<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
<% perms_by_module.keys.sort.each do |mod| %>
<% unless mod.blank? %>
<tr><%= content_tag('th', l_or_humanize(mod, :prefix => 'project_module_'), :colspan => (@roles.size + 1), :align => 'left') %></tr>
<tr class="group open">
<td colspan="<%= @roles.size + 1 %>">
<span class="expander" onclick="toggleRowGroup(this); return false;">&nbsp;</span>
<%= l_or_humanize(mod, :prefix => 'project_module_') %>
</td>
</tr>
<% end %>
<% perms_by_module[mod].each do |permission| %>
<tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">