white space changes

pull/6827/head
Gregor Schmidt 13 years ago
parent 118f3533ca
commit 71e291998c
  1. 57
      app/views/roles/index.html.erb

@ -1,41 +1,44 @@
<div class="contextual"> <div class="contextual">
<%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %> <%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %>
</div> </div>
<% html_title(l(:label_role_plural)) -%>
<h2><%=l(:label_role_plural)%></h2> <h2><%=l(:label_role_plural)%></h2>
<table class="list"> <table class="list">
<thead><tr> <thead>
<th><%=l(:label_role)%></th> <tr>
<th><%=l(:label_global)%></th> <th><%=l(:label_role)%></th>
<th><%=l(:button_sort)%></th> <th><%=l(:label_global)%></th>
<th></th> <th><%=l(:button_sort)%></th>
</tr></thead> <th></th>
</tr>
</thead>
<tbody> <tbody>
<% for role in @roles %> <% for role in @roles %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td> <td>
<td align="center" style="width:15%;"> <%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %>
</td>
<td align="center" style="width:15%;">
<%= image_tag('true.png', :alt => l(:general_text_Yes)) if role.is_a?(GlobalRole) %> <%= image_tag('true.png', :alt => l(:general_text_Yes)) if role.is_a?(GlobalRole) %>
</td> </td>
<td align="center" style="width:15%;"> <td align="center" style="width:15%;">
<% unless role.builtin? %> <% unless role.builtin? %>
<%= reorder_links('role', {:action => 'edit', :id => role}) %> <%= reorder_links('role', {:action => 'edit', :id => role}) %>
<% end %> <% end %>
</td> </td>
<td class="buttons"> <td class="buttons">
<%= link_to(l(:button_delete), { :action => 'destroy', :id => role, :class => role.class }, <%= link_to(l(:button_delete), { :action => 'destroy', :id => role, :class => role.class },
:method => :post, :method => :post,
:confirm => l(:text_are_you_sure), :confirm => l(:text_are_you_sure),
:class => 'icon icon-del') unless role.builtin? %> :class => 'icon icon-del') unless role.builtin? %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<p class="pagination"><%= pagination_links_full @role_pages %></p> <p class="pagination"><%= pagination_links_full @role_pages %></p>
<p><%= link_to l(:label_permissions_report), :action => 'report' %></p> <p><%= link_to l(:label_permissions_report), :action => 'report' %></p>
<% html_title(l(:label_role_plural)) -%>

Loading…
Cancel
Save