diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-10 10:43:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-10 10:43:19 +0000 |
commit | 814e138c2a1105f8d9d10c4362a889dd71aff32d (patch) | |
tree | fb402f6fae6b38adb4ad130d65e4b3350d84fba3 /app | |
parent | 9f59538241ab0cfdd0f6275338b2fbff2a347811 (diff) | |
download | redmine-814e138c2a1105f8d9d10c4362a889dd71aff32d.tar.gz redmine-814e138c2a1105f8d9d10c4362a889dd71aff32d.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/views/roles/report.rhtml | 7 |
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;"> </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 %>"> |