summaryrefslogtreecommitdiffstats
path: root/app/views/roles/permissions.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/roles/permissions.html.erb')
-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| %>