<commit_before><%=
  table_for @contents do |t|
    columns = [:content]
    columns.push :categories if @section.categories.any?
    columns.push :comments if defined?(Comment)
    columns += [:published, :actions]

    t.row do |r, content|
      r.add_class "level_#{content.level}"
      r.cell content_status(content) + link_to(content.title, [:edit, :admin, @site, @section, content], :class => content.state)
      r.cell content.category_titles.join(", ") if @section.categories.any?
      r.cell content.accept_comments? && content.comments.present? ? link_to(content.comments.size, admin_comments_path) : t(:"adva.common.none") if defined?(Comment)
      r.cell published_at_formatted(content)
      r.cell link_to("Edit", [:edit, :admin, @site, @section, content], :class => "edit content") +
        link_to("Delete", [:admin, @site, @section, content], :method => :delete, :class => "delete content")
    end

    t.empty :p, :class => 'empty' do
      raw params[:filters] ?
        t(:'adva.content.no_filtered_contents') :
        t(:'adva.contents.no_contents', :section => @section.title) + "\n" +
        link_to(t(:'adva.contents.links.create_now'), [:new, :admin, @site, @section, :article])
    end
  end
%>

<%= content_for :sidebar do -%>
  <!--
  <div class="tabs">
    <ul>
      <li class="active"><a href="#filters" onclick="return false;">Filters</a></li>
    </ul><commit_msg>fix missing column definitions on admin blog articles index page.<commit_after><%=
  table_for @contents do |t|
    columns = [:content]
    columns.push :categories if @section.categories.any?
    columns.push :comments if defined?(Comment)
    columns += [:published, :actions]

    t.column *columns

    t.row do |r, content|
      r.add_class "level_#{content.level}"
      r.cell content_status(content) + link_to(content.title, [:edit, :admin, @site, @section, content], :class => content.state)
      r.cell content.category_titles.join(", ") if @section.categories.any?
      r.cell content.accept_comments? && content.comments.present? ? link_to(content.comments.size, admin_comments_path) : t(:"adva.common.none") if defined?(Comment)
      r.cell published_at_formatted(content)
      r.cell link_to("Edit", [:edit, :admin, @site, @section, content], :class => "edit content") +
        link_to("Delete", [:admin, @site, @section, content], :method => :delete, :class => "delete content")
    end

    t.empty :p, :class => 'empty' do
      raw params[:filters] ?
        t(:'adva.content.no_filtered_contents') :
        t(:'adva.contents.no_contents', :section => @section.title) + "\n" +
        link_to(t(:'adva.contents.links.create_now'), [:new, :admin, @site, @section, :article])
    end
  end
%>

<%= content_for :sidebar do -%>
  <!--
  <div class="tabs">
    <ul>
      <li class="active"><a href="#filters" onclick="return false;">Filters</a></li>
    </ul>
{'fraction_non_alphanumeric': 0.1783858676827156, 'fraction_numerical': 0.0, 'mean_word_length': 3.757825370675453, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5522617', 'n_tokens_mistral': 953, 'n_tokens_neox': 949, 'n_words': 212}