summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-02 22:31:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-02 22:31:00 +0000
commit46ab7b45d7e7f6fb5d15773bb40615786e6de332 (patch)
tree8c412dc113834713a8a447506abce26279c82dc4 /app/views/roles
parente4ef0b04efabc0abc489ef0157aaaedace0ed26a (diff)
downloadredmine-46ab7b45d7e7f6fb5d15773bb40615786e6de332.tar.gz
redmine-46ab7b45d7e7f6fb5d15773bb40615786e6de332.zip
Permissions report: display role names on each permission group (#10119).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8755 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r--app/views/roles/permissions.html.erb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/roles/permissions.html.erb b/app/views/roles/permissions.html.erb
index 32703e791..da8e1ad8b 100644
--- a/app/views/roles/permissions.html.erb
+++ b/app/views/roles/permissions.html.erb
@@ -3,7 +3,7 @@
<% form_tag(permissions_roles_path, :id => 'permissions_form') do %>
<%= hidden_field_tag 'permissions[0]', '', :id => nil %>
<div class="autoscroll">
-<table class="list">
+<table class="list permissions">
<thead>
<tr>
<th><%=l(:label_permissions)%></th>
@@ -21,10 +21,13 @@
<% perms_by_module.keys.sort.each do |mod| %>
<% unless mod.blank? %>
<tr class="group open">
- <td colspan="<%= @roles.size + 1 %>">
+ <td>
<span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
<%= l_or_humanize(mod, :prefix => 'project_module_') %>
</td>
+ <% @roles.each do |role| %>
+ <td class="role"><%= h(role.name) %></td>
+ <% end %>
</tr>
<% end %>
<% perms_by_module[mod].each do |permission| %>