Sha256: 88f0f1ac963397901a9e7f149d552c7ce9d1742cdc657bbdb84f1a2668292e27

Contents?: true

Size: 1.78 KB

Versions: 3

Compression:

Stored size: 1.78 KB

Contents

<h1>Listing articles</h1>

<ul class="choices">
  <li><%= link_to 'New article', new_admin_article_path %></li>
</ul>

<table>
  <thead>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <th>Status</th>
      <th>Author</th>
      <%= sortable_table_header :name => "Updated",  :sort => "updated_at" %>
      <%= sortable_table_header :name => "Published At",  :sort => "published_at" %>
      <%= sortable_table_header :name => "Published To",  :sort => "published_to" %>
      <th colspan="3">Actions</th>
    </tr>
  </thead>
  <tbody>
<% @articles.each do |article| %>
    <tr id="article-<%= article.id %>">
      <td><%=h article.title %></td>
      <td><%= content_status(article) %></td>
      <td><%= article.author %></td>
      <td><%= article.updated_at.strftime('%d %b') %></td>
      <td><%= article.published_at.strftime('%d %b') unless article.published_at.nil? %></td>
      <td><%= article.published_to.strftime('%d %b') unless article.published_to.nil? %></td>
      <td><%= link_to 'Show', article_permalink(article), :class => 'show' if article.published? %></td>
      <td><%= link_to 'Edit', admin_article_path(article), :class => 'edit' %></td>
      <td><%= link_to 'Destroy', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
    </tr>
<% end %>
  </tbody>
  <tfoot>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <th>Status</th>
      <th>Author</th>
      <%= sortable_table_header :name => "Updated",  :sort => "updated_at" %>
      <%= sortable_table_header :name => "Published At",  :sort => "published_at" %>
      <%= sortable_table_header :name => "Published To",  :sort => "published_to" %>
      <th colspan="3">Actions</th>
    </tr>
  </tfoot>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beef-articles-0.1.0 app/views/admin/articles/index.html.erb
beef-articles-0.2.0 app/views/admin/articles/index.html.erb
beef-articles-0.2.1 app/views/admin/articles/index.html.erb