<commit_before>{% extends 'EDBlogBundle:Layout:blog_admin_main.html.twig' %}

{% from '@EDBlog/Global/Macro/tables.html.twig' import sortableTh  %}

{% block content %}
  <div class="dashboard-content">
    <h1 class="text--bold margin--halft margin--b">Articles</h1>
    <a href="{{ path('ed_blog_admin_article_create') }}" class="btn btn-md btn-primary">Create new article</a>

    {% if pagination|length %}
    <div class="table-responsive margin--t">
      <table class="table horizontal  striped  vam  js-roundtable-members">
        <thead>
          <tr>
              {{ sortableTh('Title', 'title', 'ed_blog_admin_article_list', 'v2', orderBy, order) }}
              {{ sortableTh('Author', 'author', 'ed_blog_admin_article_list', 'v2', orderBy, order) }}
              {{ sortableTh('Status', 'status', 'ed_blog_admin_article_list', 'v1', orderBy, order) }}
              {{ sortableTh('Date', 'date', 'ed_blog_admin_article_list', 'v1', orderBy, order) }}
              <th class="v1">Action</th>
          </tr>
        </thead>
        <tbody>

          {% for article in pagination %}
            <tr>
              <td><a href="{{ path('ed_blog_admin_article_edit', { 'slug' : article.slug  }) }}">{{ article.title }}</a></td>
              <td>{{ article.author.blogDisplayName }}</td>
              <td>
                  {% if(article.status == constant('STATUS_PUBLISHED', article)) %}
                      {{article.publishedAt |date('d M Y H:i:s')}}<commit_msg>contributor view posts in list<commit_after>{% extends 'EDBlogBundle:Layout:blog_admin_main.html.twig' %}

{% from '@EDBlog/Global/Macro/tables.html.twig' import sortableTh  %}

{% block content %}
  <div class="dashboard-content">
    <h1 class="text--bold margin--halft margin--b">Articles</h1>
    <a href="{{ path('ed_blog_admin_article_create') }}" class="btn btn-md btn-primary">Create new article</a>

    {% if pagination|length %}
    <div class="table-responsive margin--t">
      <table class="table horizontal  striped  vam  js-roundtable-members">
        <thead>
          <tr>
              {{ sortableTh('Title', 'title', 'ed_blog_admin_article_list', 'v2', orderBy, order) }}
              {{ sortableTh('Author', 'author', 'ed_blog_admin_article_list', 'v2', orderBy, order) }}
              {{ sortableTh('Status', 'status', 'ed_blog_admin_article_list', 'v1', orderBy, order) }}
              {{ sortableTh('Date', 'date', 'ed_blog_admin_article_list', 'v1', orderBy, order) }}
              <th class="v1">Action</th>
          </tr>
        </thead>
        <tbody>

          {% for article in pagination %}
            <tr>
              <td>
                  {% if is_granted('EDIT_ARTICLE', article) %}
                      <a href="{{ path('ed_blog_admin_article_edit', { 'slug' : article.slug  }) }}">{{ article.title }}</a>
                  {% else %}
                      <a href="{{ path('ed_blog_admin_article_show', { 'slug' : article.slug  }) }}">{{ article.title }}</a>
                  {% endif  %}
              </td>
              <td>{{ article.author.blogDisplayName }}</td>
              <td>
                  {% if(article.status == constant('STATUS_PUBLISHED', article)) %}
                      {{article.publishedAt |date('d M Y H:i:s')}}
{'fraction_non_alphanumeric': 0.1749618320610687, 'fraction_numerical': 0.004274809160305344, 'mean_word_length': 2.4703389830508473, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '234465', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1011, 'n_words': 195}