Sha256: 1bc007ffe839202dc489794f08ee50b6a7883861edbd7b41305a124931662536

Contents?: true

Size: 964 Bytes

Versions: 9

Compression:

Stored size: 964 Bytes

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.role')) -%></h1>
<div id="content_list">

<table class="table table-striped index">
  <tr>
    <th><%= t('activerecord.attributes.role.name') -%></th>
    <th><%= t('activerecord.attributes.role.display_name') -%></th>
    <th></th>
  </tr>

<%- @roles.each do |role| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td><%= link_to role.name, role -%></td>
    <td><%= link_to role.display_name.localize, role -%></td>
    <td>
      <%- if can? :update, role -%>
        <%= link_to t('page.edit'), edit_role_path(role) -%>
      <%- end -%>
      <%- if can? :destroy, role -%>
        <%= link_to t('page.destroy'), role, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enju_leaf-1.1.4 app/views/roles/index.html.erb
enju_leaf-1.1.3 app/views/roles/index.html.erb
enju_leaf-1.1.2 app/views/roles/index.html.erb
enju_leaf-1.1.1 app/views/roles/index.html.erb
enju_leaf-1.1.0 app/views/roles/index.html.erb
enju_leaf-1.1.0.rc22 app/views/roles/index.html.erb
enju_leaf-1.1.0.rc21 app/views/roles/index.html.erb
enju_leaf-1.1.0.rc20 app/views/roles/index.html.erb
enju_leaf-1.1.0.rc19 app/views/roles/index.html.erb