2018-07-07 15:11:27 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block header %}
|
2018-07-23 00:19:41 +02:00
|
|
|
{# If the logged in user is an administrator, call the title "Administration", otherwise "Settings" #}
|
|
|
|
{% if authuser.is_admin %}
|
|
|
|
<h1>Administration</h1>
|
|
|
|
{% else %}
|
|
|
|
<h1>Settings</h1>
|
|
|
|
{% endif %}
|
|
|
|
{{ super() }}
|
2018-07-07 15:11:27 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
|
2018-07-23 00:19:41 +02:00
|
|
|
{# Always show the settings a user can edit for itself #}
|
|
|
|
{% include "admin_all.html" %}
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2018-07-23 00:19:41 +02:00
|
|
|
{# Only show the "restricted" section if the user is an admin #}
|
|
|
|
{% if authuser.is_admin %}
|
|
|
|
{% include "admin_restricted.html" %}
|
|
|
|
{% endif %}
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2018-07-23 00:19:41 +02:00
|
|
|
{{ super() }}
|
2018-07-07 15:11:27 +02:00
|
|
|
|
|
|
|
{% endblock %}
|