Sha256: d26794698a51487e1fe7049ee3ca783da8be2c4f8f9a60128d05566761e366d8

Contents?: true

Size: 968 Bytes

Versions: 26

Compression:

Stored size: 968 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 policy(role).update? -%>
        <%= link_to t('page.edit'), edit_role_path(role) -%>
      <%- end -%>
      <%- if policy(role).destroy? -%>
        <%= 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

26 entries across 25 versions & 2 rubygems

Version Path
enju_seed-0.3.6 app/views/roles/index.html.erb
enju_seed-0.3.5 app/views/roles/index.html.erb
enju_seed-0.3.4 app/views/roles/index.html.erb
enju_seed-0.3.3 app/views/roles/index.html.erb
enju_seed-0.3.2 app/views/roles/index.html.erb
enju_seed-0.3.1 app/views/roles/index.html.erb
enju_seed-0.3.0 app/views/roles/index.html.erb
enju_seed-0.3.0.rc.1 app/views/roles/index.html.erb
enju_seed-0.3.0.beta.7 app/views/roles/index.html.erb
enju_seed-0.4.0.beta.1 app/views/roles/index.html.erb
enju_seed-0.3.0.beta.6 app/views/roles/index.html.erb
enju_seed-0.2.3 app/views/roles/index.html.erb
enju_seed-0.3.0.beta.4 app/views/roles/index.html.erb
enju_seed-0.2.2 app/views/roles/index.html.erb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.0/app/views/roles/index.html.erb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_seed-0.2.1/app/views/roles/index.html.erb
enju_seed-0.2.1 app/views/roles/index.html.erb
enju_seed-0.2.0 app/views/roles/index.html.erb
enju_seed-0.2.0.beta.7 app/views/roles/index.html.erb
enju_seed-0.2.0.beta.6 app/views/roles/index.html.erb