]> source.dussan.org Git - redmine.git/commitdiff
Slight change to the permissions report view, with folding support.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 10:43:19 +0000 (10:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 10:43:19 +0000 (10:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2725 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/roles/report.rhtml

index f5ebc8845074790991065e4db3fdfe2391780aee..b30730adce9837e12af1c425cd7454a1ef223d50 100644 (file)
 <% 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 %>">