<commit_before>{% extends request.is_ajax|yesno:'bajax.html,base.html' %}
{% block main %}

    <ol class="breadcrumb">
        <li><span class="glyphicon glyphicon-home"></span></li>
        <li><a href="{% url 'acc_app:accounts_list' %}">Администраторы</a></li>
        <li class="active">{{ userprofile.username }}</li>
    </ol>


    <div class="row">
        <div class="col-sm-3">
            <div class="thumbnail">
                {% if userprofile.avatar %}
                    <img alt="ava" src="{{ userprofile.avatar.min }}"/>
                {% else %}
                    <img alt="ava" src="/static/img/user_ava.gif"/>
                {% endif %}
                <div class="caption btn-group btn-group-sm">
                    {% if userprofile == request.user %}
                    <a href="{% url 'acc_app:setup_info' %}" class="btn btn-primary btn-sm" role="button">
                        <span class="glyphicon glyphicon-edit"></span> Редактировать</a>
                    {% endif %}
                    <a href="{% url 'taskapp:add' %}?rp={{ userprofile.id }}" class="btn btn-default btn-sm" role="button">
                        <span class="glyphicon glyphicon-star-empty"></span> Дать задачу</a>
                </div>
            </div>
        </div>

        <div class="col-sm-9">
            <h3>{{ userprofile.username|default:"&lt;Нет ника&gt;" }}</h3>
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#livetab_content" data-tab-remote="{% url 'acc_app:other_profile' uid %}" role="tab"
                       data-toggle="tab">
                        Администратор
                    </a>
                </li>
                <li>
                    <a href="#livetab_content" data-tab-remote="{% url 'acc_app:profile_setup_group' uid %}" role="tab"
                       data-toggle="tab">
                        Группы
                    </a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="livetab_content">
                    {% block content %}{% endblock %}
                </div>
            </div>
        </div>
    </div>

{% endblock %}<commit_msg>Кнопка групп с перезагрузкой<commit_after>{% extends request.is_ajax|yesno:'bajax.html,base.html' %}
{% block main %}

    <ol class="breadcrumb">
        <li><span class="glyphicon glyphicon-home"></span></li>
        <li><a href="{% url 'acc_app:accounts_list' %}">Администраторы</a></li>
        <li class="active">{{ userprofile.username }}</li>
    </ol>


    <div class="row">
        <div class="col-sm-3">
            <div class="thumbnail">
                {% if userprofile.avatar %}
                    <img alt="ava" src="{{ userprofile.avatar.min }}"/>
                {% else %}
                    <img alt="ava" src="/static/img/user_ava.gif"/>
                {% endif %}
                <div class="caption btn-group btn-group-sm">
                    {% if userprofile == request.user %}
                    <a href="{% url 'acc_app:setup_info' %}" class="btn btn-primary btn-sm" role="button">
                        <span class="glyphicon glyphicon-edit"></span> Редактировать</a>
                    {% endif %}
                    <a href="#" class="btn btn-default btn-sm disabled" role="button">
                        <span class="glyphicon glyphicon-star-empty"></span> Дать задачу</a>
                </div>
            </div>
        </div>

        <div class="col-sm-9">
            <h3>{{ userprofile.username|default:"&lt;Нет ника&gt;" }}</h3>
            <ul class="nav nav-tabs">
                {% url 'acc_app:other_profile' uid as profile_url %}
                <li{% if profile_url == request.path %} class="active"{% endif %}>
                    <a href="{{ profile_url }}">
                        Администратор
                    </a>
                </li>
                {% url 'acc_app:profile_setup_group' uid as profilegroups_url %}
                <li{% if profilegroups_url == request.path %} class="active"{% endif %}>
                    <a href="{{ profilegroups_url }}">
                        Группы
                    </a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="livetab_content">
                    {% block content %}{% endblock %}
                </div>
            </div>
        </div>
    </div>

{% endblock %}
{'fraction_non_alphanumeric': 0.16470588235294117, 'fraction_numerical': 0.0017758046614872365, 'mean_word_length': 1.4785478547854785, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '211474', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1286, 'n_words': 257}