<commit_before>{% set page_title = forum.title %}
{% set active_forum_nav=True %}

{% extends theme("layout.html") %}
{% block content %}
{% from theme('macros.html') import render_pagination, topic_pages %}

<ol class="breadcrumb">
    <li><a href="{{ url_for('forum.index') }}">Forum</a></li>
    <li><a href="{{ forum.category.url }}">{{ forum.category.title }}</a></li>
    <li class="active">{{ forum.title }}</li>
</ol>

<div class="pull-left" style="padding-bottom: 10px">
    {{ render_pagination(topics, forum.url) }}
</div> <!-- end span pagination -->

{% if current_user|post_topic(forum) %}
<div class="pull-right" style="padding-bottom: 10px">
    <div class="btn-group">
        <a href="{{ url_for('forum.markread', forum_id=forum.id, slug=forum.slug) }}" class="btn btn-default">
            <span class="fa fa-check"></span> Mark as Read
        </a>

        {% if forum.locked %}
        <span class="btn btn-primary">
            <span class="fa fa-lock"></span> Locked
        </span>
        {% else %}
        <a href="{{ url_for('forum.new_topic', forum_id=forum.id, slug=forum.slug) }}" class="btn btn-primary">
            <span class="fa fa-pencil"></span> New Topic
        </a>
        {% endif %}

    </div>
</div>
{% endif %}

<table class="table table-bordered">
    <thead>
        <tr>
            <th colspan="5">
                {{ forum.title }}
            </th>
        </tr>
    </thead>

    <tbody>
        <tr>
            <td colspan="2">Topic</td>

            <td>Posts</td>

            <td>Views</td>

            <td>Last Post</td>
        </tr>

        {% for topic, topicread in topics.items %}
        <tr>
            <td width="4%">
            {% if topic.locked %}
                <span class="fa fa-locked" style="font-size: 2em"></span><commit_msg>Vertical and horizontal alignment in the middle for topic icons (unread/read, locked) Change lock icon class from fa-locked (doesn't exist) to fa-lock<commit_after>{% set page_title = forum.title %}
{% set active_forum_nav=True %}

{% extends theme("layout.html") %}
{% block content %}
{% from theme('macros.html') import render_pagination, topic_pages %}

<ol class="breadcrumb">
    <li><a href="{{ url_for('forum.index') }}">Forum</a></li>
    <li><a href="{{ forum.category.url }}">{{ forum.category.title }}</a></li>
    <li class="active">{{ forum.title }}</li>
</ol>

<div class="pull-left" style="padding-bottom: 10px">
    {{ render_pagination(topics, forum.url) }}
</div> <!-- end span pagination -->

{% if current_user|post_topic(forum) %}
<div class="pull-right" style="padding-bottom: 10px">
    <div class="btn-group">
        <a href="{{ url_for('forum.markread', forum_id=forum.id, slug=forum.slug) }}" class="btn btn-default">
            <span class="fa fa-check"></span> Mark as Read
        </a>

        {% if forum.locked %}
        <span class="btn btn-primary">
            <span class="fa fa-lock"></span> Locked
        </span>
        {% else %}
        <a href="{{ url_for('forum.new_topic', forum_id=forum.id, slug=forum.slug) }}" class="btn btn-primary">
            <span class="fa fa-pencil"></span> New Topic
        </a>
        {% endif %}

    </div>
</div>
{% endif %}

<table class="table table-bordered">
    <thead>
        <tr>
            <th colspan="5">
                {{ forum.title }}
            </th>
        </tr>
    </thead>

    <tbody>
        <tr>
            <td colspan="2">Topic</td>

            <td>Posts</td>

            <td>Views</td>

            <td>Last Post</td>
        </tr>

        {% for topic, topicread in topics.items %}
        <tr>
            <td width="4%" style="vertical-align: middle; text-align: center;">
            {% if topic.locked %}
                <span class="fa fa-lock" style="font-size: 2em"></span>
{'fraction_non_alphanumeric': 0.19553219448094614, 'fraction_numerical': 0.004204993429697766, 'mean_word_length': 2.353303964757709, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '2471855', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1212, 'n_words': 276}