{% extends "admin/base.html" %}
{% load i18n admin_tools_menu_tags %}

{% block title %}{{ title }} | {% trans 'Citizen portal administration' %}{% endblock %}

{% block extrastyle %}
{{ block.super }}
{% if user.is_active and user.is_staff %}
{% if not is_popup %}
{% admin_tools_render_menu_css %}
{% endif %}
{% endif %}
{% endblock %}

{% block branding %}
{% if PORTAIL_ADMIN_URL %}
<h1 id="site-name"><a href="{{ PORTAIL_ADMIN_URL }}">{% trans 'Administration portal' %}</a></h1>
{% else %}
<h1 id="site-name">{% trans 'Citizen portal administration' %}</h1>
{% endif %}
{% endblock %}

{% block nav-global %}
{% if user.is_active and user.is_staff %}
{% if not is_popup %}
{% admin_tools_render_menu %}
{% endif %}
{% endif %}
{% endblock %}
