<commit_before>{% extends "../_layout-admin.twig" %}

{% block title %}Content{% endblock %}

{% block layoutClass %}admin{% endblock %}

{% block content %}
  <section class="content" role="main">

    <h1 class="page-title">
      <span class="page-title__container">Admin</span>
    </h1>

    <div class="grid">
      <div class="grid__unit grid__unit--1-2-m">
        <h2 class="admin-heading">My Reviews</h2>
        <div class="admin-actions">
          <a href="#0">See all</a>
          <a href="#0">Create new</a>
        </div>
        <ul class="admin-list">
          {% for review in reviews %}
            <li class="admin-list__item">
              <a href="/admin/review/{{ review.slug }}" class="admin-list__name">
                <span class="admin-list__status admin-list__status--published">Published:</span>
                <span class="admin-list__title">{{ review.title }}</span>
                {% if review.subtitle %}
                  <span class="admin-list__subtitle">{{ review.subtitle }}</span>
                {% endif %}
              </a>
              <p class="admin-list__date">Created {{ review.created_at }}, published {{ review.published_at }}</p>
              {% if review.summary %}
                <p class="admin-list__description">{{ review.summary }}</p>
              {% endif %}
              <p class="admin-list__actions">
                <a href="/reviews/{{ review.slug }}">View</a>
                <a href="/admin/review/{{ review.slug }}">Edit</a>
                <a href="#0">Unpublish</a>
              </p>
            </li>
          {% endfor %}
        </ul>
      </div>
      <div class="grid__unit grid__unit--1-2-m">
        <h2 class="admin-heading">My Posts</h2>
        <div class="admin-actions">
          <a href="#0">See all</a>
          <a href="#0">Create new</a>
        </div>
        <ul class="admin-list">
          {% for post in posts %}
            <li class="admin-list__item">
              <a href="/admin/post/{{ post.slug }}" class="admin-list__name">
                <span class="admin-list__status admin-list__status--published">Published:</span>
                <span class="admin-list__title">{{ post.title }}</span>
                {% if post.subtitle %}
                  <span class="admin-list__subtitle">{{ post.subtitle }}</span>
                {% endif %}
              </a>
              <p class="admin-list__date">Created {{ post.created_at }}, published {{ post.published_at }}</p>
              {% if post.summary %}
                <p class="admin-list__description">{{ post.summary }}</p>
              {% endif %}
              <p class="admin-list__actions">
                <a href="/articles/{{ post.slug }}">View</a>
                <a href="/admin/post/{{ post.slug }}">Edit</a>
                <a href="#0">Unpublish</a>
              </p>
            </li>
          {% endfor %}
        </ul>
      </div>
    </div>
  </section><commit_msg>Correct paths in admin index view<commit_after>{% extends "../_layout-admin.twig" %}

{% block title %}Content{% endblock %}

{% block layoutClass %}admin{% endblock %}

{% block content %}
  <section class="content" role="main">

    <h1 class="page-title">
      <span class="page-title__container">Admin</span>
    </h1>

    <div class="grid">
      <div class="grid__unit grid__unit--1-2-m">
        <h2 class="admin-heading">My Reviews</h2>
        <div class="admin-actions">
          <a href="/admin/reviews">See all</a>
          <a href="/admin/reviews/new">Create new</a>
        </div>
        <ul class="admin-list">
          {% for review in reviews %}
            <li class="admin-list__item">
              <a href="/admin/reviews/{{ review.slug }}" class="admin-list__name">
                <span class="admin-list__status admin-list__status--published">Published:</span>
                <span class="admin-list__title">{{ review.title }}</span>
                {% if review.subtitle %}
                  <span class="admin-list__subtitle">{{ review.subtitle }}</span>
                {% endif %}
              </a>
              <p class="admin-list__date">Created {{ review.created_at }}, published {{ review.published_at }}</p>
              {% if review.summary %}
                <p class="admin-list__description">{{ review.summary }}</p>
              {% endif %}
              <p class="admin-list__actions">
                <a href="/reviews/{{ review.slug }}">View</a>
                <a href="/admin/reviews/{{ review.slug }}">Edit</a>
                <a href="#0">Unpublish</a>
              </p>
            </li>
          {% endfor %}
        </ul>
      </div>
      <div class="grid__unit grid__unit--1-2-m">
        <h2 class="admin-heading">My Posts</h2>
        <div class="admin-actions">
          <a href="/admin/posts">See all</a>
          <a href="/admin/posts/new">Create new</a>
        </div>
        <ul class="admin-list">
          {% for post in posts %}
            <li class="admin-list__item">
              <a href="/admin/posts/{{ post.slug }}" class="admin-list__name">
                <span class="admin-list__status admin-list__status--published">Published:</span>
                <span class="admin-list__title">{{ post.title }}</span>
                {% if post.subtitle %}
                  <span class="admin-list__subtitle">{{ post.subtitle }}</span>
                {% endif %}
              </a>
              <p class="admin-list__date">Created {{ post.created_at }}, published {{ post.published_at }}</p>
              {% if post.summary %}
                <p class="admin-list__description">{{ post.summary }}</p>
              {% endif %}
              <p class="admin-list__actions">
                <a href="/articles/{{ post.slug }}">View</a>
                <a href="/admin/posts/{{ post.slug }}">Edit</a>
                <a href="#0">Unpublish</a>
              </p>
            </li>
          {% endfor %}
        </ul>
      </div>
    </div>
  </section>
{'fraction_non_alphanumeric': 0.1822429906542056, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 1.7668513388734994, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, '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': '4501943', 'n_tokens_mistral': 1850, 'n_tokens_neox': 1734, 'n_words': 342}