Sha256: dd92d5ba987980292d058400ba2dbcaa6dc578bd55093f93f52eded3fd19255c
Contents?: true
Size: 1.86 KB
Versions: 13
Compression:
Stored size: 1.86 KB
Contents
<h1>Listing articles</h1> <ul class="choices"> <li><%= link_to 'New article', new_admin_article_path %></li> </ul> <%= will_paginate %> <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><%= link_to h( article.title ), admin_article_path(article) %></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_url(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> <%= will_paginate %>
Version data entries
13 entries across 13 versions & 1 rubygems