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

{% load zwitschern %}
{% load i18n %}
{% load wiki %}
{% load wikiurl %}
{% load gravatar %}
{% load threadedcommentstags %}
{% load pagination_tags %}
{% load extra_tagging_tags %}
{% load tribe_tags %}

{% block head_title %}{{ tribe.name }}{% endblock %}

{% block body %}

    {% if user.is_authenticated %}
        <div class="right_panel">
            <div class="members">
                <h2>{% trans "Members" %}</h2>
                <table width="100%">
                    {% for member in tribe.members.all %}
                        {% if forloop.counter0|divisibleby:"3" %}<tr>{% endif %}
                        <td>
                            <div class="avatar">{% gravatar member 40 %}</div>
                            <div class="details"><a href="{% url profiles.views.profile member.username %}" title="{{ member.username }}">{{ member.username }}</a></div>
                        </td>
                        {% if forloop.counter0|add:"1"|divisibleby:"3" %}</tr>{% endif %}
                    {% endfor %}
                    {% if tribe.members.all|length|divisibleby:"3" %}{% else %}</tr>{% endif %}
                </table>
            </div>
        </div>
    {% endif %}

    <div style="width: 550px;">
        <p><span class="warning">{% trans "Note" %}</span>: {% trans "this is an <b>experimental</b> feature that is subject to massive change at any time." %}</p>

        <h1>{% trans "Tribe" %} {{ tribe.name }}</h1>

        <p>
            {% trans "Slug:" %} <tt>{{ tribe.slug }}</tt><br />
            {% trans "Creator:" %} <a href="{% url profiles.views.profile tribe.creator.username %}">{{ tribe.creator }}</a><br />
            {% trans "Created:" %} {{ tribe.created|date }}
            <br />
            {% show_tags_for tribe %}
        </p>

        <p>{{ tribe.description }}</p>

        {% ifequal user tribe.creator %}
            <p><a href="#" onclick="$('#tribe_form').toggle(); return false;">{% trans "Edit details" %}</a></p>

            <form id="tribe_form" method="POST" action="" style="display: none;">
                <table>
                    {{ tribe_form }}
                    <tr><td></td><td><input type="hidden" name="action" value="update" /><input type="submit" value="{% trans 'update' %}"/></td></tr>
                </table>
            </form>
        {% endifequal %}

        {% if user.is_authenticated %}
            <div>
                <form method="POST" action=""><commit_msg>made sample template changes for tribe deletion<commit_after>{% extends "tribes/base.html" %}

{% load zwitschern %}
{% load i18n %}
{% load wiki %}
{% load wikiurl %}
{% load gravatar %}
{% load threadedcommentstags %}
{% load pagination_tags %}
{% load extra_tagging_tags %}
{% load tribe_tags %}

{% block head_title %}{{ tribe.name }}{% endblock %}

{% block body %}

    {% if user.is_authenticated %}
        <div class="right_panel">
            <div class="members">
                <h2>{% trans "Members" %}</h2>
                <table width="100%">
                    {% for member in tribe.members.all %}
                        {% if forloop.counter0|divisibleby:"3" %}<tr>{% endif %}
                        <td>
                            <div class="avatar">{% gravatar member 40 %}</div>
                            <div class="details"><a href="{% url profiles.views.profile member.username %}" title="{{ member.username }}">{{ member.username }}</a></div>
                        </td>
                        {% if forloop.counter0|add:"1"|divisibleby:"3" %}</tr>{% endif %}
                    {% endfor %}
                    {% if tribe.members.all|length|divisibleby:"3" %}{% else %}</tr>{% endif %}
                </table>
            </div>
        </div>
    {% endif %}

    <div style="width: 550px;">
        <p><span class="warning">{% trans "Note" %}</span>: {% trans "this is an <b>experimental</b> feature that is subject to massive change at any time." %}</p>

        <h1>{% trans "Tribe" %} {{ tribe.name }}</h1>

        <p>
            {% trans "Slug:" %} <tt>{{ tribe.slug }}</tt><br />
            {% trans "Creator:" %} <a href="{% url profiles.views.profile tribe.creator.username %}">{{ tribe.creator }}</a><br />
            {% trans "Created:" %} {{ tribe.created|date }}
            <br />
            {% show_tags_for tribe %}
        </p>

        <p>{{ tribe.description }}</p>

        {% ifequal user tribe.creator %}
            <p><a href="#" onclick="$('#tribe_form').toggle(); return false;">{% trans "Edit details" %}</a></p>

            <form id="tribe_form" method="POST" action="" style="display: none;">
                <table>
                    {{ tribe_form }}
                    <tr><td></td><td><input type="hidden" name="action" value="update" /><input type="submit" value="{% trans 'update' %}"/></td></tr>
                </table>
            </form>
            
            {% ifequal tribe.members.all.count 1 %}
                <p><img src="/site_media/delete.png" /> <a href="#" onclick="$('#delete_tribe_form').toggle(); return false;">{% trans "Delete tribe" %}</a><p>
                 <form class="delete_form" id="delete_tribe_form" action="{% url tribe_delete tribe.slug %}" method="POST" style="display: none;">
                     <input type="submit" value="{% trans "Delete Tribe" %}" /> (all content will be removed)
                </form>
            {% else %}
                <p>You are not the only member of the tribe so you can't delete the tribe.</p>
            {% endifequal %}
            
        {% endifequal %}

        {% if user.is_authenticated %}
            <div>
                <form method="POST" action="">
{'fraction_non_alphanumeric': 0.19233449477351916, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 1.8849246231155778, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, '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': '9146', 'n_tokens_mistral': 1842, 'n_tokens_neox': 1608, 'n_words': 402}