<commit_before><!DOCTYPE html>
<html>
<head>
    <title>InternetService - Админка</title>
    <meta charset="UTF-8">
    <!--[if lt IE 9]><meta http-equiv="refresh" content="0;URL=/static/bad_ie.html" /><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="/static/css/custom.css">
    <script src="/static/js/jquery-2.2.4.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/moment-with-locales.min.js"></script>
    <script src="/static/js/bootstrap-datetimepicker.min.js"></script>
    <script src="/static/js/my.js"></script>
    <link rel="shortcut icon" href="/static/img/favicon_m.ico">
</head>
<body>

<!-- Modal -->
<div class="modal fade" id="modFrm" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" id="modContent">
            <div class="modal-header warning">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-warning-sign"></span>
                    Надпись вверху</h4>
            </div>
            <div class="modal-body">
                тут содержимое блока
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
            </div>
        </div>
    </div>
</div>

<!-- Fixed navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">InternetService</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/">Главная</a></li>
                <!--<li><a href="{ % url 'gmap:index' %}" target="_blank">Карта</a></li>
                <li><a href="{ % url 'statistics:home' %}" target="_blank">График траффика</a></li>-->
                <li><a href="{% url 'client_side:home' %}" target="_blank">Кабинет клиента</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Другое <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'acc_app:setup_info' %}">Настройки</a></li>
                        <li class="divider"></li>
                        <li class="dropdown-header">Действия аккаунта</li>
                        <li><a href="{% url 'acc_app:logout' %}">Выйти</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-right" action="{% url 'searchapp:home' %}" method="get">
                <div class="input-group stylish-input-group">
                    <input type="text" class="form-control" placeholder="Search..." name="s">
                  <span class="input-group-addon">
                    <button type="submit"><span class="glyphicon glyphicon-search"></span></button>
                  </span>
                </div>
            </form>
        </div>
        <!--/.nav-collapse -->
    </div>
</nav>
<!-- END Fixed navbar -->


<div class="container-fluid">
    <div class="row">

        <!-- Left menu -->
        <div class="col-sm-2 sidebar">

            <div class="row profile_img">
                <div class="col-sm-5">

                    <a href="{% url 'acc_app:profile' %}">
                        {% if user.avatar %}
                            <img alt="{{ user.avatar.min }}" class="img-circle img-responsive"
                                 src="{{ user.avatar.min }}"/>
                        {% else %}
                            <img src="/static/img/user_ava_min.gif" class="img-circle img-responsive"
                                 alt="user avatar"/>
                        {% endif %}
                    </a>

                </div>
                <div class="col-sm-7">
                    <b>{{ user.username }}</b><br>
                    <span>{{ user.fio }}</span>
                    <a href="tel:{{ user.telephone }}">{{ user.telephone }}</a>
                </div>
            </div>

            <ul class="nav nav-sidebar">

                {% url 'acc_app:accounts_list' as accounts_list %}
                <li{% if accounts_list in request.path %} class="active"{% endif %}>
                    <a href="{{ accounts_list }}">
                        <span class="glyphicon glyphicon-eye-open"></span> администраторы
                    </a>
                </li>


                {% url 'abonapp:group_list' as abongroup_list_link %}
                <li{% if abongroup_list_link in request.path %} class="active"{% endif %}>
                    <a href="{{ abongroup_list_link }}">
                        <span class="glyphicon glyphicon-user"></span> абоненты
                    </a></li>

                {% url 'taskapp:home' as task_home %}
                <li{% if task_home in request.path %} class="active"{% endif %}>
                    <a href="{{ task_home }}">
                        <span class="glyphicon glyphicon-tasks"></span> Задачи
                        {% if tasks_count > 0 %}<span class="badge">{{ tasks_count }}</span>{% endif %}
                    </a></li>

                {% url 'tarifs:home' as tarifs_home %}
                <li{% if tarifs_home in request.path %} class="active"{% endif %}>
                    <a href="{{ tarifs_home }}">
                        <span class="glyphicon glyphicon-usd"></span> тарифы
                    </a></li>


                {% url 'privmsg:home' as privmsg_home %}
                <li{% if privmsg_home in request.path %} class="active"{% endif %}>
                    <a href="{{ privmsg_home }}">
                        <span class="glyphicon glyphicon-envelope"></span> внутренняя переписка
                    </a></li>


                {% url 'ip_pool:home' as ip_pool_home %}
                <li{% if ip_pool_home in request.path %} class="active"{% endif %}>
                    <a href="{{ ip_pool_home }}">
                        <span class="glyphicon glyphicon-compressed"></span> ip пул
                    </a></li>

                {% url 'devapp:devs' as devapp_devs %}
                <li{% if devapp_devs in request.path %} class="active"{% endif %}>
                    <a href="{{ devapp_devs }}">
                        <span class="glyphicon glyphicon-hdd"></span> железки
                    </a></li>

            </ul>

        </div>
        <!-- END Left menu -->

        <!-- Main content -->
        <div class="col-sm-10 col-sm-offset-2 main">

            {% block main %}{% endblock %}

        </div>
        <!-- END Main content -->

    </div>
</div>

</body>
</html><commit_msg>Адаптировал левое меню под телефоны<commit_after><!DOCTYPE html>
<html>
<head>
    <title>InternetService - Админка</title>
    <meta charset="UTF-8">
    <!--[if lt IE 9]><meta http-equiv="refresh" content="0;URL=/static/bad_ie.html" /><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="/static/css/custom.css">
    <script src="/static/js/jquery-2.2.4.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/moment-with-locales.min.js"></script>
    <script src="/static/js/bootstrap-datetimepicker.min.js"></script>
    <script src="/static/js/my.js"></script>
    <link rel="shortcut icon" href="/static/img/favicon_m.ico">
</head>
<body>

<!-- Modal -->
<div class="modal fade" id="modFrm" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" id="modContent">
            <div class="modal-header warning">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-warning-sign"></span>
                    Надпись вверху</h4>
            </div>
            <div class="modal-body">
                тут содержимое блока
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
            </div>
        </div>
    </div>
</div>

<!-- Fixed navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">InternetService</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/">Главная</a></li>
                <!--<li><a href="{ % url 'gmap:index' %}" target="_blank">Карта</a></li>
                <li><a href="{ % url 'statistics:home' %}" target="_blank">График траффика</a></li>-->
                <li><a href="{% url 'client_side:home' %}" target="_blank">Кабинет клиента</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Другое <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'acc_app:setup_info' %}">Настройки</a></li>
                        <li class="divider"></li>
                        <li class="dropdown-header">Действия аккаунта</li>
                        <li><a href="{% url 'acc_app:logout' %}">Выйти</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-right" action="{% url 'searchapp:home' %}" method="get">
                <div class="input-group stylish-input-group">
                    <input type="text" class="form-control" placeholder="Search..." name="s">
                  <span class="input-group-addon">
                    <button type="submit"><span class="glyphicon glyphicon-search"></span></button>
                  </span>
                </div>
            </form>
        </div>
        <!--/.nav-collapse -->
    </div>
</nav>
<!-- END Fixed navbar -->


<div class="container-fluid">
    <div class="row row-offcanvas row-offcanvas-left">

        <!-- Left menu -->
        <div class="col-sm-2 sidebar sidebar-offcanvas" role="navigation">

            <div class="row profile_img">
                <div class="col-sm-5">

                    <a href="{% url 'acc_app:profile' %}">
                        {% if user.avatar %}
                            <img alt="{{ user.avatar.min }}" class="img-circle img-responsive"
                                 src="{{ user.avatar.min }}"/>
                        {% else %}
                            <img src="/static/img/user_ava_min.gif" class="img-circle img-responsive"
                                 alt="user avatar"/>
                        {% endif %}
                    </a>

                </div>
                <div class="col-sm-7">
                    <b>{{ user.username }}</b><br>
                    <span>{{ user.fio }}</span>
                    <a href="tel:{{ user.telephone }}">{{ user.telephone }}</a>
                </div>
            </div>

            <ul class="nav nav-sidebar">

                {% url 'acc_app:accounts_list' as accounts_list %}
                <li{% if accounts_list in request.path %} class="active"{% endif %}>
                    <a href="{{ accounts_list }}">
                        <span class="glyphicon glyphicon-eye-open"></span> администраторы
                    </a>
                </li>


                {% url 'abonapp:group_list' as abongroup_list_link %}
                <li{% if abongroup_list_link in request.path %} class="active"{% endif %}>
                    <a href="{{ abongroup_list_link }}">
                        <span class="glyphicon glyphicon-user"></span> абоненты
                    </a></li>

                {% url 'taskapp:home' as task_home %}
                <li{% if task_home in request.path %} class="active"{% endif %}>
                    <a href="{{ task_home }}">
                        <span class="glyphicon glyphicon-tasks"></span> Задачи
                        {% if tasks_count > 0 %}<span class="badge">{{ tasks_count }}</span>{% endif %}
                    </a></li>

                {% url 'tarifs:home' as tarifs_home %}
                <li{% if tarifs_home in request.path %} class="active"{% endif %}>
                    <a href="{{ tarifs_home }}">
                        <span class="glyphicon glyphicon-usd"></span> тарифы
                    </a></li>


                {% url 'privmsg:home' as privmsg_home %}
                <li{% if privmsg_home in request.path %} class="active"{% endif %}>
                    <a href="{{ privmsg_home }}">
                        <span class="glyphicon glyphicon-envelope"></span> внутренняя переписка
                    </a></li>


                {% url 'ip_pool:home' as ip_pool_home %}
                <li{% if ip_pool_home in request.path %} class="active"{% endif %}>
                    <a href="{{ ip_pool_home }}">
                        <span class="glyphicon glyphicon-compressed"></span> ip пул
                    </a></li>

                {% url 'devapp:devs' as devapp_devs %}
                <li{% if devapp_devs in request.path %} class="active"{% endif %}>
                    <a href="{{ devapp_devs }}">
                        <span class="glyphicon glyphicon-hdd"></span> железки
                    </a></li>

            </ul>

        </div>
        <!-- END Left menu -->

        <!-- Main content -->
        <div class="col-sm-10 col-sm-offset-2 main">
            <p class="pull-left visible-xs">
                <button type="button" data-toggle="offcanvas"></button>
            </p>

            {% block main %}{% endblock %}

        </div>
        <!-- END Main content -->

    </div>
</div>

</body>
</html>
{'fraction_non_alphanumeric': 0.17607624055208676, 'fraction_numerical': 0.002366086099244167, 'mean_word_length': 1.6755758748021805, 'pattern_counts': {'":': 0, '<': 403, '<?xml version=': 0, '>': 405, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4511712', 'n_tokens_mistral': 4701, 'n_tokens_neox': 4317, 'n_words': 872}