<commit_before>{% extends 'board_base.html' %}
{% load i18n %}

{% block sub-title %}{% trans "Moderation queue" %}{% endblock sub-title %}

{% block content %}
    <div class="row">
        <div class="col-xs-12">
            <h1>{% trans "Moderation queue" %}</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-6 col-md-4 forum-actions-block">
            {% if paginator.count > 0 %}
                <p class="text-muted">
                    {% blocktrans with paginator.count as topic_length %}{{ topic_length }} posts found{% endblocktrans %}
                </p>
            {% endif %}
        </div>
        <div class="col-xs-12 col-md-8 pagination-block">
            {% with "pagination-sm" as pagination_size %}
                {% include "machina/partials/pagination.html" %}
            {% endwith %}
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="panel panel-default postmoderationlist">
                <div class="panel-heading">
                    <div class="row panel-row">
                        <div class="col-md-8 post-name-col">
                            <h3 class="panel-title">{% trans "Moderation queue" %}</h3>
                        </div>
                        <div class="col-md-2 moderation-col">{% trans "Topic" %}</div>
                        <div class="col-md-2 moderation-col">{% trans "Forum" %}</div>
                    </div>
                </div>
                <div class="panel-body">
                    {% for post in posts %}
                        <div class="row panel-row">
                            <div class="col-md-8 post-name">
                                <table class="post-data-table">
                                    <tr>
                                        <td class="post-name">
                                            <a href="{% url 'forum_moderation:queued_post' post.pk %}" class="post-name-link">{{ post.subject }}</a>
                                            <div>
                                                <div class="post-created">
                                                    {% trans "By:" %} {% if post.poster %}<a href="#">{{ post.poster.username }}</a>{% else %}{{ post.username }}{% endif %} {% trans "on" %} {{ post.created }}
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="col-md-2 topic-name">
                                {% if post.is_topic_head %}
                                    <span class="label label-default">{% trans "New topic" %}</span>
                                {% else %}
                                    <a href="#" class="post-name-link">{{ post.topic.subject }}</a>
                                {% endif %}
                            </div>
                            <div class="col-md-2 forum-name">
                                <a href="{% url 'forum:forum' slug=post.topic.forum.slug pk=post.topic.forum.pk %}" class="post-name-link">{{ post.topic.forum.name }}</a>
                            </div>
                        </div>
                    {% empty %}
                        <div class="row panel-row">
                            <div class="col-md-12">
                                {% trans "Not posts awaiting approval." %}
                            </div>
                        </div>
                    {% endfor %}
                </div>
            </div><commit_msg>Missing link in moderation queue template added<commit_after>{% extends 'board_base.html' %}
{% load i18n %}

{% block sub-title %}{% trans "Moderation queue" %}{% endblock sub-title %}

{% block content %}
    <div class="row">
        <div class="col-xs-12">
            <h1>{% trans "Moderation queue" %}</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-6 col-md-4 forum-actions-block">
            {% if paginator.count > 0 %}
                <p class="text-muted">
                    {% blocktrans with paginator.count as topic_length %}{{ topic_length }} posts found{% endblocktrans %}
                </p>
            {% endif %}
        </div>
        <div class="col-xs-12 col-md-8 pagination-block">
            {% with "pagination-sm" as pagination_size %}
                {% include "machina/partials/pagination.html" %}
            {% endwith %}
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="panel panel-default postmoderationlist">
                <div class="panel-heading">
                    <div class="row panel-row">
                        <div class="col-md-8 post-name-col">
                            <h3 class="panel-title">{% trans "Moderation queue" %}</h3>
                        </div>
                        <div class="col-md-2 moderation-col">{% trans "Topic" %}</div>
                        <div class="col-md-2 moderation-col">{% trans "Forum" %}</div>
                    </div>
                </div>
                <div class="panel-body">
                    {% for post in posts %}
                        <div class="row panel-row">
                            <div class="col-md-8 post-name">
                                <table class="post-data-table">
                                    <tr>
                                        <td class="post-name">
                                            <a href="{% url 'forum_moderation:queued_post' post.pk %}" class="post-name-link">{{ post.subject }}</a>
                                            <div>
                                                <div class="post-created">
                                                    {% trans "By:" %} {% if post.poster %}<a href="#">{{ post.poster.username }}</a>{% else %}{{ post.username }}{% endif %} {% trans "on" %} {{ post.created }}
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="col-md-2 topic-name">
                                {% if post.is_topic_head %}
                                    <span class="label label-default">{% trans "New topic" %}</span>
                                {% else %}
                                    <a href="{% url 'forum_conversation:topic' forum_slug=post.topic.forum.slug forum_pk=post.topic.forum.pk slug=post.topic.slug pk=post.topic.pk %}" class="post-name-link">{{ post.topic.subject }}</a>
                                {% endif %}
                            </div>
                            <div class="col-md-2 forum-name">
                                <a href="{% url 'forum:forum' slug=post.topic.forum.slug pk=post.topic.forum.pk %}" class="post-name-link">{{ post.topic.forum.name }}</a>
                            </div>
                        </div>
                    {% empty %}
                        <div class="row panel-row">
                            <div class="col-md-12">
                                {% trans "Not posts awaiting approval." %}
                            </div>
                        </div>
                    {% endfor %}
                </div>
            </div>
{'fraction_non_alphanumeric': 0.14408007375214013, 'fraction_numerical': 0.006321612011062821, 'mean_word_length': 0.9592363261093911, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1919363', 'n_tokens_mistral': 2036, 'n_tokens_neox': 1826, 'n_words': 403}