{% load static i18n templates generator %}
{% block head %}
{% block head_title %}{% if head_title %}{{ head_title }}{% elif brand_name %}{% elif site_name %}{{ site_name }}{% else %}Django{% endif %}{% endblock head_title %}
{% if head_description %}
{% endif %} {% block head_meata %}{% endblock %}{% block extra_head_meta %}{% endblock %} {{ theme.html_css }} {%if favicon %}
{% endif %} {{ theme.html_js}} {% block head_css %}{% endblock head_css %}{# Add your own CSS files here. Meant for base templates #} {% block extra_css %}{% endblock extra_css %}{# Add your own CSS files here. Meant for app templates #} {% block head_links %}{% endblock head_links %}{# Add your own links here. Meant for base templates #} {% block extra_links %}{% endblock extra_links %}{# Add your own links here. Meant for app templates #} {{ theme.html_js }} {% block head_scripts %}{% endblock head_scripts %}{# Add your own scripts here. Meant for base templates #} {% block extra_scripts %}{% endblock extra_scripts %}{# Add your own scripts here. Meant for app templates #} {% block head_inline_scripts %}{% endblock head_inline_scripts %}{# Add your own inline scripts here. Meant for base templates #} {% block extra_inline_scripts %}{% endblock extra_inline_scripts %}{# Add your own inline scripts here. Meant for app templates #} {% block extra_head %}{% endblock extra_head %} {% endblock head %} {% block body %} {% if theme_settings.header_enabled and theme_settings.navbar_enabled %}
{% if brand_name %}{{ brand_name }}{% elif site_name %}{{ site_name }}{% else %}Django{% endif %}
{% block header_subtitle %}{% endblock %}
{% include 'theme/navbar'|template:theme %}
{% elif theme_settings.navbar_enabled %}
{% include 'theme/navbar'|template:theme %}
{% endif %}
{% if theme_settings.sidebar_enabled %}
{% if not theme_settings.navbar_enabled and theme_settings.header_enabled %}
{% if brand_name %}{{ brand_name }}{% elif site_name %}{{ site_name }}{% else %}Django{% endif %}
{% if header_title %}
{{ header_title }}
{% endif %} {% if header_subtitle %}
{{ header_subtitle }}
{% endif %}
{% elif header_title or header_subtitle %}
{% if header_title %}
{{ header_title }}
{% endif %} {% if header_subtitle %}
{{ header_subtitle }}
{% endif %}
{% endif %}
{% block sidebar %}
{% if sidebar %}
{% for section in sidebar %}
{% if section.template %} {% include section.template|template:theme with sidebar_section=section %} {% elif section.widget %} {{ section.widget|safe }} {% elif section.url %}
{{ section.title }}
{% else %}
{{ section.title }}
{% endif %} {% if section.children %}
{% for item in section.children %} {% include "theme/sidebar-item"|template:theme with sidebar_level=1 item=item %} {% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock sidebar %}
{% endif %}
{% block breadcrumbs %} {% if breadcrumbs %}
{% for name,url in breadcrumbs %} {% if not forloop.last %} {% if url %}
{{ name }}
{% elif href %}
{{ name }}
{% else %}
{{ name }}
{% endif %} {% else %} {% if url %}
{{ name }}
{% else %}
{{ name }}
{% endif %} {% endif %} {% endfor %}
{% endif %} {% endblock %}
{% block content %} {% endblock content %}
{% block footer %} {% endblock footer %}
{{ theme.html_body_js }} {% block body_scripts %}{% endblock body_scripts %}{# Add your own scripts here. Meant for base templates #} {% block body_inline_scripts %}{% endblock body_inline_scripts %}{# Add your own inline scripts here. Meant for base templates #} {% block extra_body_scripts %}{% endblock extra_body_scripts %}{# Add your own scripts here. Meant for app templates #} {% block extra_body_inline_scripts %}{% endblock extra_body_inline_scripts %}{# Add your own inline scripts here. Meant for app templates #} {% block extra_body %}{% endblock extra_body %} {% endblock body %}