Sha256: edc364547ca35c91fd0b0aee6c95ca71c81ef9f42f9b72daad33d640362bb9d0
Contents?: true
Size: 1.54 KB
Versions: 19
Compression:
Stored size: 1.54 KB
Contents
<div id="content_detail" class="ui-corner-all ui-widget-content"> <h1 class="title"><%= t('page.listing', model: t('activerecord.models.content_type')) -%></h1> <div id="content_list"> <p id="notice"><%= notice %></p> <table class="table table-striped index"> <tr> <th id="position"></th> <th><%= t('activerecord.attributes.content_type.name') -%></th> <th> <%= t('activerecord.attributes.content_type.display_name') -%> / <%= t('activerecord.attributes.content_type.note') -%> </th> <th></th> </tr> <%- @content_types.each do |content_type| -%> <tr class="line<%= cycle("0", "1") -%>"> <td> <%- if can? :update, content_type -%> <%= move_position(content_type) -%> <%- end -%> </td> <td><%= content_type.name -%></td> <td> <%= link_to content_type.display_name.localize, content_type -%> <br /> <%= content_type.note %> </td> <td> <%- if can? :update, content_type -%> <%= link_to t('page.edit'), edit_content_type_path(content_type) -%> <% end %> <%- if can? :delete, content_type -%> <%= link_to t('page.destroy'), content_type_path(content_type), 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"> <ul> <%- if can? :create, ContentType -%> <li><%= link_to t('page.new', model: t('activerecord.models.content_type')), new_content_type_path -%></li> <%- end -%> </ul> </div>
Version data entries
19 entries across 19 versions & 1 rubygems