Sha256: 4ec682325230584656f3cb0b6865de95923a2dd2780e0a215bcaff81bd9ee197

Contents?: true

Size: 1.55 KB

Versions: 36

Compression:

Stored size: 1.55 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 policy(content_type).update? -%>
        <%= 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 policy(content_type).update? -%>
        <%= link_to t('page.edit'), edit_content_type_path(content_type) -%>
      <% end %>
      <%- if policy(content_type).destroy? -%>
        <%= 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 policy(ContentType).create? -%>
      <li><%= link_to t('page.new', model: t('activerecord.models.content_type')), new_content_type_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

36 entries across 35 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 app/views/content_types/index.html.erb
enju_biblio-0.3.17 app/views/content_types/index.html.erb
enju_biblio-0.3.16 app/views/content_types/index.html.erb
enju_biblio-0.3.15 app/views/content_types/index.html.erb
enju_biblio-0.3.14 app/views/content_types/index.html.erb
enju_biblio-0.3.13 app/views/content_types/index.html.erb
enju_biblio-0.3.12 app/views/content_types/index.html.erb
enju_biblio-0.3.11 app/views/content_types/index.html.erb
enju_biblio-0.3.10 app/views/content_types/index.html.erb
enju_biblio-0.3.10.rc.3 app/views/content_types/index.html.erb
enju_biblio-0.3.10.rc.2 app/views/content_types/index.html.erb
enju_biblio-0.3.10.rc.1 app/views/content_types/index.html.erb
enju_biblio-0.3.9 app/views/content_types/index.html.erb
enju_biblio-0.3.8 app/views/content_types/index.html.erb
enju_biblio-0.3.7 app/views/content_types/index.html.erb
enju_biblio-0.3.6 app/views/content_types/index.html.erb
enju_biblio-0.3.5 app/views/content_types/index.html.erb
enju_biblio-0.3.4 app/views/content_types/index.html.erb
enju_biblio-0.3.3 app/views/content_types/index.html.erb
enju_biblio-0.3.2 app/views/content_types/index.html.erb