Sha256: fa9078fe42c778e945daadaf63559310f3dac23a8551819a23394a05873a4586

Contents?: true

Size: 903 Bytes

Versions: 1

Compression:

Stored size: 903 Bytes

Contents

<!-- Scaffolding generated by Caseadilla 0.0.1 -->

<table class="table table-striped table-hover table-condensed">
  <thead>
    <tr>
      <th><%= caseadilla_sort_link "Title", :title %></th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  
  <% roles.each do |role| %>
    <% if role.title == 'admin' or 'user' %>
      <tr>
        <td><%= caseadilla_table_cell_no_link role.title %></td>
        <td class="locked">
          <%= caseadilla_show_row_icon("lock")%>
        </td>
      </tr>
    <% else %>
      <tr>
        <td><%= caseadilla_table_cell_link role.title, caseadilla_role_path(role) %></td>
        <td class="delete">
          <%= link_to(caseadilla_show_row_icon("trash"), caseadilla_role_path(role), :method => :delete, :data => { :confirm => "Are you sure you want to delete this role?" }) %>
        </td>
      </tr>
    <% end %>
  <% end %>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caseadilla-0.0.1 app/views/caseadilla/roles/_table.html.erb