summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/roles/report.rhtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/roles/report.rhtml b/app/views/roles/report.rhtml
index f5ebc8845..b30730adc 100644
--- a/app/views/roles/report.rhtml
+++ b/app/views/roles/report.rhtml
@@ -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 %>">