<commit_before>{% extends "admin/layout.html" %}
{% block title %}{{ _("Pages") }}{% endblock %}
{% block contents %}
  <h2>{{ _("Pages") }}</h2>
  <table>
    <tr>
      <th>{{ _("ID") }}</th>
      <th style="width: 20%;">{{ _("Key") }}</th>
      <th style="width: 50%;">{{ _("Title") }}</th>
      <th>{{ _("Navigation Position") }}</th>
    </tr>
    {% for page in pages %}
    <tr class="pages_row">
      <td>{{ page.page_id }}</td>
      <td style="width: 20%;"><a href="{{ url_for(page) }}">{{ page.key }}</a></td>
      <td style="width: 50%;">
        <a href="{{ url_for('admin/write_page', page_id=page.page_id) }}">{{ page.title }}</a>
      </td>
      <td>{% if page.navigation_pos %}{{ page.navigation_pos }}{% else %}{% trans %}No position given{% endtrans %}{% endif %}</td>
    </tr>
    {% endfor %}
  </table>
  {% if not pages %}
  <p style="text-align:center;"><strong>
    {% trans url=url_for('admin/write_page') %}
      No pages created yet. <a href="{{ url }}">Create</a> your first!
    {% endtrans %}
  </strong></p>
  {% endif %}
  <form action="{{ url_for('admin/write_page')|e }}" method="get">
    <div class="actions">
      <input type="submit" value="{{ _('New Page') }}">
    </div>
  </form>
{% endblock %}<commit_msg>Adapted pages template to general style.<commit_after>{% extends "admin/layout.html" %}
{% block title %}{{ _("Pages") }}{% endblock %}
{% block contents %}
  <h2>{{ _("Pages") }}</h2>
  <table class="pagelist">
    <tr>
      <th>{{ _("ID") }}</th>
      <th>{{ _("Key") }}</th>
      <th>{{ _("Title") }}</th>
      <th>{{ _("Navigation Position") }}</th>
    </tr>
    {%- for page in pages %}
    <tr class="{{ loop.cycle('odd', 'even') }}">
      <td>{{ page.page_id }}</td>
      <td><a href="{{ url_for(page) }}">{{ page.key }}</a></td>
      <td><a href="{{ url_for('admin/write_page', page_id=page.page_id) }}">{{ page.title }}</a></td>
      <td>{% if page.navigation_pos %}{{ page.navigation_pos }}{% else %}{% trans %}No position given{% endtrans %}{% endif %}</td>
    </tr>
    {%- else %}
    <tr><td colspan="4">{{ _("No pages.") }}</td></tr>
    {%- endfor %}
  </table>
  <form action="{{ url_for('admin/write_page')|e }}" method="get">
    <div class="actions">
      <input type="submit" value="{{ _('New Page') }}">
    </div>
  </form>
{% endblock %}
{'fraction_non_alphanumeric': 0.2801372801372801, 'fraction_numerical': 0.005577005577005577, 'mean_word_length': 3.2246376811594204, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '2121429', 'n_tokens_mistral': 906, 'n_tokens_neox': 845, 'n_words': 198}