<% 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', mod.humanize, :colspan => (@roles.size + 1)) %></th></tr>
+ <tr><%= content_tag('th', mod.humanize, :colspan => (@roles.size + 1), :align => 'left') %></tr>
<% end %>
<% perms_by_module[mod].each do |permission| %>
<tr class="<%= cycle('odd', 'even') %>">
/***** Tables *****/
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
-table.list tbody th { text-align: left; padding: 0px; }
+table.list tbody th { padding: 0px; }
table.list td { overflow: hidden; text-overflow: ellipsis; vertical-align: top;}
table.list tbody tr:hover { background-color:#ffffdd; }
table td {padding:2px;}