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

{% load i18n %}
{% load uni_form %}
{% load humanize %}
{% load pagination_tags %}
{% load order_by %}
{% load extra_tagging_tags %}
{% load tribe_tags %}

{% block head_title %}{% blocktrans %}Tribes{% endblocktrans %}{% endblock %}

{% block body %}
    <h1>{% trans "Tribes" %}</h1>
    
    <p>{% trans "A <b>tribe</b> is a group of people with some common interest." %}</p>
    {% if user.is_authenticated %}
        <div class="form-toggle">
            <p><span id="start-tribe-toggle">{% trans "Start your own tribe" %}</a></p>
            <form class="uniForm" id="start-tribe" method="POST" action="">
                <fieldset class="inlineLabels">
                    {% get_tribe_form as tribe_form %}
                    {{ tribe_form|as_uni_form }}
                    <div class="form_block">
                        <input type="hidden" name="action" value="create" />
                        <input type="submit" value="{% trans "create" %}"/>
                    </div>
                </fieldset>
            </form>
        </div>
    {% else %}
        {% url acct_signup as signup_url %}
        {% url acct_login as login_url %}
        <p>{% blocktrans %}<a href="{{ signup_url }}">Sign up</a> and <a href="{{ login_url }}">log in </a> to create your own tribe or join an existing one.{% endblocktrans %}</p>
    {% endif %}
    <commit_msg>fixed problem with tribes form submission<commit_after>{% extends "tribes/base.html" %}

{% load i18n %}
{% load uni_form %}
{% load humanize %}
{% load pagination_tags %}
{% load order_by %}
{% load extra_tagging_tags %}
{% load tribe_tags %}

{% block head_title %}{% blocktrans %}Tribes{% endblocktrans %}{% endblock %}

{% block body %}
    <h1>{% trans "Tribes" %}</h1>
    
    <p>{% trans "A <b>tribe</b> is a group of people with some common interest." %}</p>
    {% if user.is_authenticated %}
        <div class="form-toggle">
            <p><span id="start-tribe-toggle">{% trans "Start your own tribe" %}</a></p>
            <form class="uniForm" id="start-tribe" method="POST" action="{% url tribe_create %}">
                <fieldset class="inlineLabels">
                    {% get_tribe_form as tribe_form %}
                    {{ tribe_form|as_uni_form }}
                    <div class="form_block">
                        <input type="hidden" name="action" value="create" />
                        <input type="submit" value="{% trans "create" %}"/>
                    </div>
                </fieldset>
            </form>
        </div>
    {% else %}
        {% url acct_signup as signup_url %}
        {% url acct_login as login_url %}
        <p>{% blocktrans %}<a href="{{ signup_url }}">Sign up</a> and <a href="{{ login_url }}">log in </a> to create your own tribe or join an existing one.{% endblocktrans %}</p>
    {% endif %}
    
{'fraction_non_alphanumeric': 0.17222222222222222, 'fraction_numerical': 0.002777777777777778, 'mean_word_length': 2.2046718576195774, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '4995106', 'n_tokens_mistral': 972, 'n_tokens_neox': 868, 'n_words': 241}