{% extends 'layouts/app.html' %} {% import 'macros/items.html' as items %} {% import 'macros/form.html' as f with context %} {% import 'macros/user.html' as account %} {% block title %}Admin - Users / List{% endblock %} {% block body %}
{{ f.search('admin.users') }} {% if users.total == 0 %}

No results found

{% if request.args.get('q') %}

Try limiting or removing your search terms.

{% else %}

There are no users present, you should sign up.

{% endif %} {% else %} {% call f.form_tag('admin.users_bulk_delete') %} {% for user in users.items %} {% endfor %}
{{ items.sort('created_on', 'Registered') }} {{ items.sort('name') }} {{ items.sort('last_bet_on', 'Activity') }} {{ items.sort('sign_in_count', 'Sign in count') }}
{{ f.field(bulk_form.scope, inline=True) }}
{{ account.role_icon_for(user) }}
{{ user.username }}

{{ user.email }}

{% if user.last_sign_in_on %} Last seen: {% endif %} {% if user.last_bet_on %}
Latest bet: {% endif %}
{{ user.sign_in_count }}
{% endcall %} {{ items.paginate(users) }} {% endif %}
{% endblock %}