<commit_before>{% extends "base.html" %}
{% block title: %}Users - {% endblock %}
{% block content: %}
    <h2>Users</h2>

    <nav id="subnav">
        Group:
        {% if not request.args.group: %}
        All
        {% else %}
        <a href="{{url_for("admin_user_list", **group_link_args)}}">All</a>
        {% endif %}
        {% for group in User.group.type.enums: %}
        {% if request.args.group == group: %}
        {{ group.capitalize() }}
        {% else %}
        <a href="{{url_for("admin_user_list", group=group, **group_link_args)}}">{{ group.capitalize() }}</a>
        {% endif %}
        {% endfor %}
    </nav>

    <form action="{{request.path}}" method="get">
        {% if request.args.group %}<input type="hidden" name="group" value="{{ request.args.group }}">{% endif %}
        <p>Username: <input type="text" name="username" value="{{ request.args.username }}"></p>
        <p>IP address: <input type="text" name="ip" value="{{ request.args.ip }}"></p>
        <p>Order by: <select name="order">
        {% for id, order in user_orders.items(): %}
            <option value="{{ id }}"{% if request.args.order == id: %} selected{% endif %}>{{ order.name }}</option>
        {% endfor %}
        </select></p>
        <p><button type="submit">Search</button></p>
    </form>

    {{ pager() }}
    {% if users: %}
    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>Username</th>
                <th>Group</th>
                <th>Created</th>
                <th>Last online</th>
                <th>Last IP</th>
                <th>Time zone</th>
            </tr><commit_msg>Go back to page 1 when submitting the user search form.<commit_after>{% extends "base.html" %}
{% block title: %}Users - {% endblock %}
{% block content: %}
    <h2>Users</h2>

    <nav id="subnav">
        Group:
        {% if not request.args.group: %}
        All
        {% else %}
        <a href="{{url_for("admin_user_list", **group_link_args)}}">All</a>
        {% endif %}
        {% for group in User.group.type.enums: %}
        {% if request.args.group == group: %}
        {{ group.capitalize() }}
        {% else %}
        <a href="{{url_for("admin_user_list", group=group, **group_link_args)}}">{{ group.capitalize() }}</a>
        {% endif %}
        {% endfor %}
    </nav>

    <form action="{{url_for("admin_user_list")}}" method="get">
        {% if request.args.group %}<input type="hidden" name="group" value="{{ request.args.group }}">{% endif %}
        <p>Username: <input type="text" name="username" value="{{ request.args.username }}"></p>
        <p>IP address: <input type="text" name="ip" value="{{ request.args.ip }}"></p>
        <p>Order by: <select name="order">
        {% for id, order in user_orders.items(): %}
            <option value="{{ id }}"{% if request.args.order == id: %} selected{% endif %}>{{ order.name }}</option>
        {% endfor %}
        </select></p>
        <p><button type="submit">Search</button></p>
    </form>

    {{ pager() }}
    {% if users: %}
    <table>
        <thead>
            <tr>
                <th>#</th>
                <th>Username</th>
                <th>Group</th>
                <th>Created</th>
                <th>Last online</th>
                <th>Last IP</th>
                <th>Time zone</th>
            </tr>
{'fraction_non_alphanumeric': 0.21096543504171633, 'fraction_numerical': 0.0014898688915375446, 'mean_word_length': 2.0216021602160215, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '1995087', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1032, 'n_words': 223}