<% if @posts.blank? && @pages.blank? %>
<%= t("views.admin.trash.empty") %>
<% end %> <% size = respond_to_trash(@posts, @pages) %> <% if !@pages.blank? %>
<%= form_tag deal_with_form_admin_trash_index_path do %>
<%= t("generic.pages") %>
<%= link_to empty_articles_admin_trash_index_path('page'), :class => 'btn btn-danger btn-xs', data: { confirm: t("views.admin.generic.confirm") } do %>  <%= t("views.admin.trash.delete_all") %> <% end %>
    <% @pages.each do |page| %>
  • <%= check_box_tag 'pages[]', page.id %> <%= page.post_title %><%= page.post_status == "Draft" ? t("views.admin.partials.articles_table.draft") : '' %>
  • <% end %>
<% end %>
<% end %> <% if !@posts.blank? %>
<%= form_tag deal_with_form_admin_trash_index_path do %>
<%= t("generic.articles") %>
<%= link_to empty_articles_admin_trash_index_path('post'), :class => 'btn btn-danger btn-xs', data: { confirm: t("views.admin.generic.confirm") } do %>  <%= t("views.admin.trash.delete_all") %> <% end %>
    <% @posts.each do |post| %>
  • <%= check_box_tag 'posts[]', post.id %> <%= post.post_title %><%= post.post_status == "Draft" ? t("views.admin.partials.articles_table.draft") : '' %>
  • <% end %>
<% end %>
<% end %>