{% extends "base.html" %} {% block header %} {# If the logged in user is an administrator, call the title "Administration", otherwise "Settings" #} {% if authuser.is_admin %}

Administration

{% else %}

Settings

{% endif %} {{ super() }} {% endblock %} {% block main %} {# Always show the settings a user can edit for itself #} {% include "admin_all.html" %} {# Only show the "restricted" section if the user is an admin #} {% if authuser.is_admin %} {% include "admin_restricted.html" %} {% endif %} {{ super() }} {% endblock %}