Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/roles/index.html.erb
<% title_actions link_to("New role", new_role_path),
link_to_if_authorized("Permissions report", :action => 'report') %>
<table class="list">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th><%= sort :name, :as => "Role" %></th>
......
<%= content_tag(role.builtin? ? 'em' : 'span', link_to_if_authorized(role.name, :action => 'edit', :id => role)) %>
</td>
<td class="buttons">
<%= display_link_if_authorized("Delete", hash_for_role_path(:id => role, :auth_action => :destroy),
:method => :delete,
:confirm => "Delete #{role.name}?",
:class => 'icon icon-del') unless role.builtin?
<%= display_delete_if_authorized(hash_for_role_path(:id => role),
:confirm => "Delete #{role.name}?") unless role.builtin?
%>
</td>
</tr>

Also available in: Unified diff