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