{% extends 'base.html' %}

{% block content %}
<section class="panel">
    <h1>Users</h1>
    <table>
        <thead>
            <th>Username</th>
            <th>Name</th>
        </thead>
        <tbody>
            {% for user in user_list %}
                <tr>
                    <td>{{ user.username }}</td>
                    <td><a href="{% url 'account-detail' user.id %}">{{user.first_name}} {{user.last_name}}</a></td>
                </tr>
            {% empty %}
                <tr><td>No users yet.</td></tr>
            {% endfor %}
        </tbody>
    </table>
</section>
{% endblock %}
