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:
parent
9f59538241
commit
814e138c2a
|
@ -19,7 +19,12 @@
|
||||||
<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
|
<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
|
||||||
<% perms_by_module.keys.sort.each do |mod| %>
|
<% perms_by_module.keys.sort.each do |mod| %>
|
||||||
<% unless mod.blank? %>
|
<% 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;"> </span>
|
||||||
|
<%= l_or_humanize(mod, :prefix => 'project_module_') %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% perms_by_module[mod].each do |permission| %>
|
<% perms_by_module[mod].each do |permission| %>
|
||||||
<tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
|
<tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>">
|
||||||
|
|
Loading…
Reference in New Issue