<commit_before>{% extends 'layout/base.html' %}
{% from 'macros/board.html' import render_flag_new %}
{% from 'macros/datetime.html' import render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% from 'macros/user_avatar.html' import render_user_avatar_16_and_name %}
{% set current_page = 'board' %}
{% set title = 'Forum' %}

{% block head %}
  <style>
    .board-category-tag {
      font-size: 0.625rem; /* 10px / 16px */
      text-transform: uppercase;
    }
  </style>
{%- endblock %}

{% block body %}

  <h1>Forum</h1>

  {%- if topics.items %}
  <table class="index wide board-topic-index">
    <thead>
      <tr>
        <th>Thema</th>
        <th class="centered">Antworten</th>
        <th>Letzter Beitrag</th>
      </tr>
    </thead>
    <tbody>
      {%- for topic in topics.items %}
      <tr id="topic-{{ topic.id }}"{% if topic.hidden %} class="dimmed"{% endif %}>
        <td>
          <a class="board-topic-link disguised" href="{{ url_for('.topic_view', topic_id=topic.id) }}">
            <div class="board-topic-title">
              {%- if topic.hidden %}<span class="tag tag--outlined">{{ render_icon('hidden', title='versteckt (durch %s)'|format(topic.hidden_by.screen_name)) }}</span> {% endif -%}
              {%- if topic.locked %}<span class="tag tag--outlined">{{ render_icon('lock', title='geschlossen') }}</span> {% endif -%}
              {%- if topic.pinned %}<span class="tag tag--outlined">{{ render_icon('pin', title='angeheftet') }}</span> {% endif -%}
              <strong>{{ topic.title }}</strong>
              {%- if topic.contains_unseen_postings %} {{ render_flag_new() }}{% endif %}
            </div>
            <div class="board-topic-initial-posting">
              <span class="board-category-tag">{{ topic.category.title }}</span>
              &middot;
              begonnen von {{ render_user_avatar_16_and_name(topic.creator) }}
            </div>
          </a>
        </td>
        <td class="centered bignumber">{{ topic.reply_count|separate_thousands }}</td>
        <td class="nowrap">{{ render_datetime(topic.last_updated_at|utc_to_local_tz) }}<br>von {{ render_user_avatar_16_and_name(topic.last_updated_by) }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>
  {%- else %}
  <p class="dimmed">In dieser Kategorie gibt es noch keine Themen.</p>
  {%- endif %}

{{ render_pagination_nav(topics, 'board.topic_index', centered=True) }}

{%- endblock %}<commit_msg>Remove stray HTML element from board topic index<commit_after>{% extends 'layout/base.html' %}
{% from 'macros/board.html' import render_flag_new %}
{% from 'macros/datetime.html' import render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% from 'macros/user_avatar.html' import render_user_avatar_16_and_name %}
{% set current_page = 'board' %}
{% set title = 'Forum' %}

{% block head %}
  <style>
    .board-category-tag {
      font-size: 0.625rem; /* 10px / 16px */
      text-transform: uppercase;
    }
  </style>
{%- endblock %}

{% block body %}

  <h1>Forum</h1>

  {%- if topics.items %}
  <table class="index wide board-topic-index">
    <thead>
      <tr>
        <th>Thema</th>
        <th class="centered">Antworten</th>
        <th>Letzter Beitrag</th>
      </tr>
    </thead>
    <tbody>
      {%- for topic in topics.items %}
      <tr id="topic-{{ topic.id }}"{% if topic.hidden %} class="dimmed"{% endif %}>
        <td>
          <a class="board-topic-link disguised" href="{{ url_for('.topic_view', topic_id=topic.id) }}">
            <div class="board-topic-title">
              {%- if topic.hidden %}<span class="tag tag--outlined">{{ render_icon('hidden', title='versteckt (durch %s)'|format(topic.hidden_by.screen_name)) }}</span> {% endif -%}
              {%- if topic.locked %}<span class="tag tag--outlined">{{ render_icon('lock', title='geschlossen') }}</span> {% endif -%}
              {%- if topic.pinned %}<span class="tag tag--outlined">{{ render_icon('pin', title='angeheftet') }}</span> {% endif -%}
              <strong>{{ topic.title }}</strong>
              {%- if topic.contains_unseen_postings %} {{ render_flag_new() }}{% endif %}
            </div>
            <div class="board-topic-initial-posting">
              <span class="board-category-tag">{{ topic.category.title }}</span>
              &middot;
              begonnen von {{ render_user_avatar_16_and_name(topic.creator) }}
            </div>
          </a>
        </td>
        <td class="centered bignumber">{{ topic.reply_count|separate_thousands }}</td>
        <td class="nowrap">{{ render_datetime(topic.last_updated_at|utc_to_local_tz) }}<br>von {{ render_user_avatar_16_and_name(topic.last_updated_by) }}</td>
      </tr>
      {%- endfor %}
    </tbody>
  </table>
  {%- else %}
  <p class="dimmed">In dieser Kategorie gibt es noch keine Themen.</p>
  {%- endif %}

{{ render_pagination_nav(topics, 'board.topic_index', centered=True) }}

{%- endblock %}
{'fraction_non_alphanumeric': 0.18695993715632364, 'fraction_numerical': 0.006284367635506678, 'mean_word_length': 2.8730038022813686, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 94, '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': '1463310', 'n_tokens_mistral': 1848, 'n_tokens_neox': 1702, 'n_words': 328}