19 lines
527 B
HTML
19 lines
527 B
HTML
|
{% extends "templates/base.html" %}
|
||
|
|
||
|
{% block content %}
|
||
|
{% if users|length == 0 %}
|
||
|
<b>Any user available</b><br/><br/>
|
||
|
{% else %}
|
||
|
{% for user in users %}
|
||
|
{% if user.first_name|length != 0 or user.last_name|length != 0%}
|
||
|
<li><a href="/user/{{ user.id }}">{{ user.first_name }} {{ user.last_name }}</a></li>
|
||
|
{% else %}
|
||
|
<li><a href="/user/{{ user.id }}">{{ user.login }}</a></li>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% if user.is_superuser %}
|
||
|
<li><a href="/user/add">Add a user</a></li>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|