mirror of
https://github.com/ae-utbm/sith3.git
synced 2024-06-13 18:21:55 +00:00
32 lines
724 B
HTML
32 lines
724 B
HTML
{% extends "core/base.html" %}
|
|
|
|
{% block title %}
|
|
{% if profile %}
|
|
{{ profile.get_display_name }}'s profile
|
|
{% endif %}
|
|
{% if user_list %}
|
|
User list
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if profile %}
|
|
<h3>User Profile</h3>
|
|
<p><a href="{% url 'core:user_list' %}">Back to list</a></p>
|
|
{% if user.is_superuser or user.id == profile.id %}
|
|
<p><a href="{% url 'core:user_edit' profile.id %}">Edit</a></p>
|
|
{% endif %}
|
|
<p>You're seeing the profile of <strong>{{ profile.get_display_name }}</strong></p>
|
|
{% endif %}
|
|
|
|
{% if user_list %}
|
|
<h3>User list</h3>
|
|
<ul>
|
|
{% for u in user_list %}
|
|
<li><a href="{% url 'core:user_profile' u.id %}">{{ u.get_display_name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|