<commit_before>{% extends "tribes/base.html" %}

{% load i18n %}
{% load gravatar %}
{% load threadedcommentstags %}
{% load pagination_tags %}

{% block head_title %}Pinax : {% blocktrans with tribe.name as tribe_name %}Topics for {{ tribe_name }}{% endblocktrans %}{% endblock %}

{% block body %}
    <h1>{% trans "Discussion Topics for Tribe" %} <a href="{% url tribe_detail tribe.slug %}">{{ tribe.name }}</a></h1>
    
    {% autopaginate tribe.topics.all %}
    
    <table class="topics">
        {% for topic in tribe.topics.all %}
            <tr class="{% cycle odd,even %}">
                <td class="meta">
                    <div class="avatar">{% gravatar topic.creator 40 %}</div>
                    <div class="details"><a href="{% url profiles.views.profile topic.creator.username %}">{{ topic.creator }}</a></div>
                    <div class="created">{{ topic.created|date }}</p>
                </td>
                <td>
                    <h2><a href="{% url tribe_topic topic.id %}">{{ topic.title }}</a></h2>
                    <div class="body">{{ topic.body|urlize|linebreaks }}</div>
                    {% get_comment_count for topic as comment_count %}
                    {% if comment_count %}
                        <div class="comment_stats">
                            {% blocktrans %}{{ comment_count }} comment{{ comment_count|pluralize }}
                            (most recent: {{ topic.modified|date }})
                            {% endblocktrans %}
                        </div>
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
    </table>
    
    {% paginate %}
    
    
    <h2>{% trans "New Topic" %}</h2>
    
    <form action="{% url tribe_topics tribe.slug %}" method="POST">
        <table>
            {{ topic_form }}
            <tr><td><input type="submit" value="{% trans "Create New Topic" %}" /></td></tr>
        </table>
        <input type="hidden" name="next" value="{{ request.path }}" />
    </form>
    
{% endblock %}<commit_msg>fixed blocktrans problem in tribe topics template<commit_after>{% extends "tribes/base.html" %}

{% load i18n %}
{% load gravatar %}
{% load threadedcommentstags %}
{% load pagination_tags %}

{% block head_title %}Pinax : {% blocktrans with tribe.name as tribe_name %}Topics for {{ tribe_name }}{% endblocktrans %}{% endblock %}

{% block body %}
    <h1>{% trans "Discussion Topics for Tribe" %} <a href="{% url tribe_detail tribe.slug %}">{{ tribe.name }}</a></h1>
    
    {% autopaginate tribe.topics.all %}
    
    <table class="topics">
        {% for topic in tribe.topics.all %}
            <tr class="{% cycle odd,even %}">
                <td class="meta">
                    <div class="avatar">{% gravatar topic.creator 40 %}</div>
                    <div class="details"><a href="{% url profiles.views.profile topic.creator.username %}">{{ topic.creator }}</a></div>
                    <div class="created">{{ topic.created|date }}</p>
                </td>
                <td>
                    <h2><a href="{% url tribe_topic topic.id %}">{{ topic.title }}</a></h2>
                    <div class="body">{{ topic.body|urlize|linebreaks }}</div>
                    {% get_comment_count for topic as comment_count %}
                    {% if comment_count %}
                        <div class="comment_stats">
                            {% blocktrans with comment_count|pluralize as comment_count_pluralize and topic.modified|date as topic_modified_date %}{{ comment_count }} comment{{ comment_count_pluralize }}
                            (most recent: {{ topic_modified_date }})
                            {% endblocktrans %}
                        </div>
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
    </table>
    
    {% paginate %}
    
    
    <h2>{% trans "New Topic" %}</h2>
    
    <form action="{% url tribe_topics tribe.slug %}" method="POST">
        <table>
            {{ topic_form }}
            <tr><td><input type="submit" value="{% trans "Create New Topic" %}" /></td></tr>
        </table>
        <input type="hidden" name="next" value="{{ request.path }}" />
    </form>
    
{% endblock %}
{'fraction_non_alphanumeric': 0.16858959265363785, 'fraction_numerical': 0.0047092064987049684, 'mean_word_length': 1.8188453881884539, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '4881802', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1199, 'n_words': 288}