Sha256: 753febf408ab9a90d24b0d2bae9b00b6704749ed0b43de8453c40bad7608fd35

Contents?: true

Size: 1.41 KB

Versions: 12

Compression:

Stored size: 1.41 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1><%= @type.title.pluralize 2 %></h1>
    <%= link_to "New #{@type.title}", new_content_path(type: @type.slug), class: 'button' %>
  </div>
</div>

<% if notice %>
  <div class="row">
    <div class="small-12 columns">
      <div class="callout success notice">
        <p><%= notice %></p>
      </div>
    </div>
  </div>
<% end %>

<div class="row">
  <div class="small-12 columns">
    <% if @contents.size > 0 %>
      <table>
        <tbody>
          <% @contents.each do |content| %>
            <tr>
              <td><%= content.title %><% if content.visible == 0 %>&nbsp;&nbsp;<i class="fa fa-eye-slash"></i><% end %></td>
              <td><small>Created on <%= content.created_at.strftime("%b #{content.created_at.day.ordinalize}, %Y") %></small></td>
              <td><small>Updated at <%= content.updated_at.strftime("%b #{content.updated_at.day.ordinalize}, %Y") %></small></td>
              <td align="right" class="action_links">
                <%= link_to 'Edit', edit_content_path(content) %>
                <%= link_to_destroy 'Destroy', content %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
    <p>No <%= @type.title.pluralize(2).downcase %> content has been added.</p>
    <% end %>
  </div>
</div>

<div class="row">
  <div class="small-12 columns">
    <%= will_paginate @options %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/contents/index.html.erb
guts-1.3.5 app/views/guts/contents/index.html.erb
guts-1.3.4 app/views/guts/contents/index.html.erb
guts-1.3.3 app/views/guts/contents/index.html.erb
guts-1.3.2 app/views/guts/contents/index.html.erb
guts-1.3.1 app/views/guts/contents/index.html.erb
guts-1.3.0 app/views/guts/contents/index.html.erb
guts-1.2.2 app/views/guts/contents/index.html.erb
guts-1.2.1 app/views/guts/contents/index.html.erb
guts-1.2.0 app/views/guts/contents/index.html.erb
guts-1.1.1 app/views/guts/contents/index.html.erb
guts-1.1.0 app/views/guts/contents/index.html.erb