{% load static i18n templates generator %} {% block head %} {% block head_title %}{% if head_title %}{{ head_title }}{% elif SITE_NAME %}{{ SITE_NAME }}{% else %}Django{% endif %}{% endblock head_title %} {% block head_meta %}{% endblock head_meta %} {%if favicon %}{% endif %} {{ theme.html_css }} {% block head_css %}{% endblock head_css %} {% block extra_css %}{% endblock extra_css %} {% block head_links %}{% endblock head_links %} {% block extra_links %}{% endblock extra_links %} {{ theme.html_js }} {% block head_scripts %}{% endblock head_scripts %} {% block extra_scripts %}{% endblock extra_scripts %} {% 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 %} {% if theme_settings.navbar_enabled or theme_settings.header_enabled %}
{% block header %} {% if theme_settings.header_enabled %}
{% block header_logo %} brand logo {% endblock header_logo %} {% block header_title %} {% if brand_title %}{{ brand_title }}{% elif site_name %}{{ site_name }}{% else %}Django{% endif %} {% endblock header_title %} {% block header_subtitle %} {% if header_subtitle %}{{ header_subtitle }}{% endif %} {% endblock header_subtitle %}
{% endif %}{# header_enabled #} {% endblock header %}
{% endif %}{# header_enabled #} {% if theme_settings.navbar_enabled %}
{% block navbar %}
{% with "id-navbar-dropdown-"|generator as navbar_dropdown_id %} {% block navbar_start %}
    {% if navbar %} {% for item in navbar %}
  • {% if item.template %} {% include item.template|template:theme %} {% elif item.widget %} {{ item.widget|safe }} {% elif item.url %} {{ item.title }} {% elif item.menu %}
    {{ item.title }}
      {% for subitem in item.menu %}
    • {% if subitem.widget %} {{ subitem.widget|safe }} {% elif subitem.url %} {{ subitem.title }} {% else %} {{ subitem.title }} {% endif %}
    • {% endfor %}
    {% else %} {{ item.title }} {% endif %}
  • {% endfor %} {% endif %}
{% endblock navbar_start %} {% block navbar_end %} {% if navbar_end %}
    {% for item in navbar_end %}
  • {% if item.template %} {% include item.template|template:theme %} {% elif item.widget %} {{ item.widget|safe }} {% elif item.url %} {{ item.title }} {% elif item.menu %}
    {{ item.title }}
      {% for subitem in item.menu %}
    • {% if subitem.widget %} {{ subitem.widget|safe }} {% elif subitem.url %} {{ subitem.title }} {% else %} {{ subitem.title }} {% endif %}
    • {% endfor %}
    {% else %} {{ item.title }} {% endif %}
  • {% endfor %}
{% endif %} {% endblock navbar_end %} {% endwith %}
{% endblock navbar %}
{% endif %}{# navbar_enabled #}
{% if theme_settings.sidebar_enabled %}
{% 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 }} {% else %}
{% if section.url %} {{ section.title }} {% else %} {{ section.title }} {% endif %}
    {% for item in section.children %} {% include "theme/sidebar-item"|template:theme with item=item sidebar_level=1 %} {% endfor %}
{% endif %} {% endfor %} {% endif %}
{% endblock sidebar%}
{% endif %}
{% block breadcrumbs %} {% if breadcrumbs %}
    {% for name,url in breadcrumbs %} {% if not forloop.last %} {% if url %}
  1. {{ name }}
  2. {% else %}
  3. {{ name }}
  4. {% endif %} {% else %} {% if url %}
  5. {{ name }}
  6. {% else %}
  7. {{ name }}
  8. {% endif %} {% endif %} {% endfor %}
{% endif %} {% endblock breadcrumbs %} {% block content %}

{% translate "It Works" %}

{% blocktranslate with request_path=request.path app_name=request.resolver_match.app_name %}You are viewing {{ request_path }} in {{ app_name }} app.{% endblocktranslate %}

{% translate "You should override this template in your app to display your own content." %}

{% endblock content %}

{% block footer %} Bootstrap 5 Theme powered by dj-templates, Bootstrap 5 and Django. {% endblock footer %}
{% if secondary_sidebar_enabled %}
{% block secondary_sidebar %}{% endblock %}
{% endif %}
{% 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 %}