Dynastie/dynastie/templates/user.html

19 lines
509 B
HTML
Raw Normal View History

{% extends "base.html" %}
2012-07-08 16:23:39 +02:00
{% block content %}
{% if users|length == 0 %}
<b>Any user available</b><br/><br/>
{% else %}
{% for user in users %}
2012-12-24 15:40:11 +01:00
{% if user.first_name != "" or user.last_name != "" %}
2012-07-08 16:23:39 +02:00
<li><a href="/user/{{ user.id }}">{{ user.first_name }} {{ user.last_name }}</a></li>
{% else %}
2012-12-24 15:40:11 +01:00
<li><a href="/user/{{ user.id }}">{{ user.username }}</a></li>
2012-07-08 16:23:39 +02:00
{% endif %}
{% endfor %}
{% endif %}
{% if user.is_superuser %}
<li><a href="/user/add">Add a user</a></li>
{% endif %}
{% endblock %}