Sha256: b5d63d00e34aafc2054201a999a16047f918f93c229f4f1a10895798f8d10fbb

Contents?: true

Size: 800 Bytes

Versions: 2

Compression:

Stored size: 800 Bytes

Contents

<% title content_class.tableize.titleize %>

<% content_for :heading do %>
  <h1><%= content_class.tableize.titleize %></h1>
<% end %>

<table class="table space-4">
  <thead>
    <tr>
      <th>Title</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Published at</th>
      <th colspan="2"></th>
    </tr>
  </thead>

  <tbody>
    <% @entries.each do |entry| %>
      <tr>
        <td><%= link_to entry.title, content_entry_path(entry) %></td>
        <td><%= time_ago_in_words entry.created_at %> ago</td>
        <td><%= time_ago_in_words entry.updated_at %> ago</td>
        <td><%= entry.published_at %></td>
        <td><%= link_to 'Destroy', content_entry_path(entry), method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plotline-0.1.1 app/views/plotline/entries/index.html.erb
plotline-0.1.0 app/views/plotline/entries/index.html.erb