{% extends "layout.html" %} | |
{% block title %}users{% endblock %} | |
{% block body %} | |
{% if not session.logged_in %} | |
You must <a href="{{ url_for('login') }}">login</a>. | |
{% else %} | |
<table> | |
<thead> | |
<tr><th colspan=3>Users</th></tr> | |
<tr><th>ID</th><th>Name</th><th>Email</th></tr> | |
</thead> | |
{% for id,user in config.data.users|dictsort %} | |
<tr> | |
<td><a href="{{ url_for('user', username=id) }}">{{ id }}</a></td> | |
<td>{{ user.name }}</td> | |
<td>{{ user.email }}</td> | |
</tr> | |
{% endfor %} | |
</table> | |
{% endif %} | |
{% endblock %} |