<% form_tag({:action => 'index'}, :method => :get, :name => 'article') do %> <%= render_void_table(@articles.size, 9) %> <% for article in @articles %> > <% end %>
<%= _("Title") %> <%= _("Categories") %> <%= _("Feedback")%> <%= _("Date") %> <%= _("Author")%> <%= _("Status") %> <%= _("Preview")%> <%= _("Edit")%> <%= _("Delete")%>
<%= link_to_permalink article, h(article.title) %> <%= article.categories.map { |c| link_to h(c.name), {:controller => 'admin/categories', :action => 'show', :id => c.id}}.join(", ") %> <%= link_to _(pluralize(article.comments.size, 'comments')), :controller => '/admin/comments', :article_id => article.id, :action => 'list' %> <%= article.published_at.strftime("%d/%m/%Y at %H:%M") %> <%= author_link(article)%> <%= (article.published?) ? image_tag('admin/checked.png', :alt => "online", :title => _("Online")) : image_tag('admin/cancel.png', :alt => "offline", :title => _("Offline")) %> <%= link_to_show article %> <%= link_to_edit article %> <%= link_to image_tag('admin/delete.png'), {:action => 'destroy', :id => article.id, :search => params[:search], :page => params[:page] }, :confirm => "Are you sure?", :method => :post %>
<%end%>