{% 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" %}
      {% if perms.pylucid.change_pagetree %}
    • {% trans "edit all" %}
    • {% endif %} {% if PYLUCID.pagecontent %} {% if perms.pylucid.change_pagecontent %}
    • {# how to use direct the url "pylucid_pagecontent_revision" ? #} {% trans "see content history" %}
    • {% endif %} {% endif %}
    • {% trans "django admin" %}
        {% if PYLUCID.pluginpage %} {% if perms.pylucid.change_pluginpage %}
      • {% trans "edit plugin page" %}
      • {% endif %} {% endif %} {% if PYLUCID.pagecontent %} {% if perms.pylucid.change_pagecontent %}
      • {% trans "edit page content" %}
      • {% endif %} {% endif %} {% if perms.pylucid.change_pagetree %}
      • {% trans "edit page tree" %}
      • {% endif %} {% if perms.pylucid.change_pagemeta %}
      • {% trans "edit page meta" %}
      • {% endif %}
    • {% if perms.pylucid.change_design %}
    • {% trans "edit current look" %}
        {% if perms.pylucid.change_design %}
      • {% trans "design" %}
      • {% if PYLUCID.pagetree.design.colorscheme %}
      • {% trans "colorscheme" %}
      • {% endif %} {% endif %} {% if perms.pylucid.change_editablehtmlheadfile %} {% for headfile in PYLUCID.pagetree.design.headfiles.all %}
      • {{ headfile.get_filename }}
      • {% endfor %} {% endif %} {% if perms.dbtemplates.change_template and template %}
      • {% trans "page template" %}
      • {% endif %}
    • {% endif %} {% if PYLUCID.pagecontent %} {% if add_translate %} {% if perms.pylucid.add_pagecontent and perms.pylucid.add_pagemeta and perms.pylucid.add_pluginpage %}
    • {% trans "translate content" %}
    • {% endif %} {% endif %} {% if perms.pylucid.change_pagecontent %}
    • {% trans "convert markup" %}
    • {% endif %} {% endif %} {% if perms.pylucid.change_pagetree %}
    • {% trans "change page order" %}
    • {% endif %} {% if perms.pylucid.delete_pageplugin and perms.pylucid.delete_pagecontent and perms.pylucid.delete_pagemeta and perms.pylucid.delete_pagetree %}
    • {% trans "delete page" %}
    • {% endif %}
  • {% 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
      • {% trans "install PyLucid" %}
      • {% trans "install plugins" %}
      • {% trans "update section" %}
    • {% endif %} {% lucidTag admin_menu.panel_extras %}