{% if not inline %}{# we are in the django admin panel #}
-
<< {{ current_site.name }}
{% if not sites|length_is:"1" %}
{% for site in sites %}
-
{% ifnotequal site current_site %}
<< {{ site.name }}
{% endifnotequal %}
{% endfor %}
{% endif %}
{% endif %}
- {% lucidTag auth %}
{% if inline %}{# we are inside a cms page and not in the django admin panel #}
{% if not sites|length_is:"1" %}
{% for site in sites %}
-
{% ifnotequal site current_site %}
<< {{ site.name }}
{% endifnotequal %}
{% endfor %}
{% endif %}
{% endif %}
{% if inline %}{# is true, if this menu would be included inside the cms page and not in the django admin panel #}
{% if perms.pylucid.change_pagecontent and perms.pylucid.change_pagemeta %}
-
{% trans "edit page" %}
{% endif %}
{% endif %}
{% if user.is_staff %}
-
{% trans "Django admin site" %}
{% if not inline %}{# we are in the django admin panel #}
{% if not sites|length_is:"1" %}
{% for site in sites %}
{% ifnotequal site current_site %}
-
{{ site.name }}
{% endifnotequal %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
-
{% trans "PyLucid admin menu" %}
{% if user.is_superuser %}
-
PyLucid
{% endif %}
{% lucidTag admin_menu.panel_extras %}