Listing articles

<%= sortable_table_header :name => "Title", :sort => "title" %> <%= 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" %> <% @articles.each do |article| %> <% end %> <%= sortable_table_header :name => "Title", :sort => "title" %> <%= 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" %>
Status AuthorActions
<%=h article.title %> <%= content_status(article) %> <%= article.author %> <%= article.updated_at.strftime('%d %b') %> <%= article.published_at.strftime('%d %b') unless article.published_at.nil? %> <%= article.published_to.strftime('%d %b') unless article.published_to.nil? %> <%= link_to 'Show', article_permalink(article), :class => 'show' if article.published? %> <%= link_to 'Edit', admin_article_path(article), :class => 'edit' %> <%= link_to 'Destroy', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %>
Status AuthorActions