{% set page_title = "Online Users" %}

{% extends theme("layout.html") %}

{% block navigation %}
{% endblock %}

{% block content %}

<legend>Online Users</legend>
{% for user in online_users %}
    {% if config["REDIS_ENABLED"] %}
    <a href="{{ url_for('user.profile', username=user) }}">{{ user }}<a>{% if not loop.last %}, {% endif %}
    {% else %}
    <a href="{{ url_for('user.profile', username=user) }}">{{ user.username }}<a>{% if not loop.last %}, {% endif %}
    {% endif %}
{% endfor %}

{% endblock %}
