Sha256: 9529442b4a5fa503e9682e8c4107eef814771c149d36d7e2d2941341c60181d7

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 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">

<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') -%></th>
    <th><%= 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><%= link_to content_type.name, content_type -%></td>
    <td><%= link_to content_type.display_name.localize, content_type -%></td>
    <td><%= 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

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 app/views/content_types/index.html.erb
enju_biblio-0.1.0.pre54 app/views/content_types/index.html.erb
enju_biblio-0.1.0.pre53 app/views/content_types/index.html.erb