% form_tag({:action => 'index'}, :method => :get, :name => 'article') do %>
<%= _("Title") %> | <%= _("Categories") %> | <%= _("Feedback")%> | <%= _("Date") %> | <%= _("Author")%> | <%= _("Status") %> | <%= _("Preview")%> | <%= _("Edit")%> | <%= _("Delete")%> |
---|---|---|---|---|---|---|---|---|
<%= collection_select_with_current('search', 'category', @categories, "id", "name", @search[:category].to_i, true) %> | <%= collection_select_with_current(:search, :published_at, Article.find_by_published_at, "publication", "publication", @search[:published_at], true) %> | <%= collection_select_with_current(:search, :user_id, User.find(:all), "id", "name", @search[:user_id].to_i, true) %> | ||||||
<%= 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 %> |