{# Do we need jquery? Isn't this an invalid URL? #}
{% block header %}
{% if ar -%} {% if isinstance(obj, rt.models.publisher.Publishable) -%} {{obj.get_prev_link(ar)}} {{obj.get_next_link(ar)}} | {% endif -%} {% if obj and dd.is_installed('react') %} {% set ar_react = obj.get_default_table().request(parent=ar, permalink_uris=True, renderer=dd.plugins.react.renderer) %} {% if ar_react.obj2url(obj) %} {{ tostring(ar_react.obj2html(obj, text='Edit')) }} | {% endif %} {% endif %} {% if ar.request and ar.request.path != '/' -%} {{_("Home")}} {% else -%} {{_("Home")}} {% endif -%} {% if site.kernel.editing_front_end.url_prefix -%} | {{_("Admin")}} {% endif -%} {% if len(site.languages) > 1 -%} | {% for lang in site.languages -%} {% if lang.django_code == requested_language -%} {{lang.django_code}} {% else -%} {# URL_PARAM_USER_LANGUAGE #} {{lang.django_code}} {% endif -%} {% endfor -%} {% endif -%} | {% set user = ar.get_user() %} {% if user.is_anonymous %} {% if dd.is_installed("react") %} {% set About = rt.models.about.About %} {{_("Sign in")}} {% else %} {{_("Sign in")}} {% endif %} {% else %} {{str(user)}} {{_("Sign out")}} {% endif %} {%- if site.kernel.admin_ui -%} — {{site.kernel.admin_ui.ui_label}} {%- endif -%} {% endif -%} {% if not dd.is_installed("react") %} {% endif -%}
{% endblock %} {% block navbar %} {% if home %} {% endif %} {% if menu -%} {% endif -%} {% endblock %} {% block main %}
{% set ppos = ar.actor.params_panel_pos %} {% set sb_width = site.sidebar_width if obj is not none or ppos in ["left", "right"] else 0 %} {% if site.sidebar_width %}
{% if ppos == "left" and params_form is defined %}
{% block params_panel_left %} {{ params_form }} {% endblock %}
{% endif %}
{% endif %} {% block content %} This page has no content. {% endblock %} {% if site.sidebar_width %}
{% if obj is not none or (ar.actor.params_panel_pos == "right" and params_form is defined) %}
{% if obj is not none %} {% elif params_form is defined %} {% block params_panel_right %} {{ params_form }} {% endblock %} {% else %} {### {% block sidebar %} Nothing more to say in the sidebar. {% endblock %} ###} {% endif %}
{% endif %}
{% endif %}
{% endblock %}