{% load static tethys_gizmos terms_tags analytical%} {# Allows custom attributes to be added to the html tag #} {% block htmltag %} {% endblock %} {# Allows custom attributes to be added to the head tag #} {% analytical_head_top %} {% comment "meta explanation" %} Add custom meta tags to the page. Call block.super to get the default tags such as charset, viewport and generator. Example: {% block meta %} {{ block.super }} {% endblock %} {% endcomment %} {% block meta %} {% endblock %} {% comment "title explanation" %} Add a custom title to the page by extending the title block. Call block.super to get the default page title. Example: {% block title %}My Subtitle - {{ block.super }}{% endblock %} {% endcomment %} {% if site_globals.site_title %} {{ site_globals.site_title }} {% elif site_globals.brand_text %} {{ site_globals.brand_text }} {% else %} Tethys {% endif %} {% block title %}{% endblock %} {% comment "links explanation" %} The links block allows you to add additional content before the stylesheets such as rss feeds and favicons in the same way as the meta block. {% endcomment %} {% block links %} {% endblock %} {% comment "import_gizmos explanation" %} The import_gizmos block allows you register gizmos to be added to your page so that the dependencies load properly. Example: {% block import_gizmos %} {% import_gizmo_dependency map_view %} {% endblock %} {% endcomment %} {% block import_gizmos %} {% endblock %} {% comment "styles explanation" %} The styles block allows you to add additional stylesheets to the page in the same way as the meta block. Use block.super to include the default stylesheets before or after your own. Example: {% block styles %} {{ block.super }} {% endblock %} {% endcomment %} {% block styles %} {% block app_base_styles %} {% endblock %} {% if tethys_app.enable_feedback %} {% endif %} {% gizmo_dependencies global_css %} {% endblock %} {% block global_scripts %} {% gizmo_dependencies global_js %} {% endblock %} {% block session_timeout_modal %} {% include 'session_security/all.html' %} {% endblock %} {% analytical_head_bottom %} {# Allows custom attributes to be added to the body tag #} {% analytical_body_top %} {% block app_content_wrapper_override %}
{% block app_header_override %}
{% block header_buttons_override %}
{% block header_buttons %} {% endblock %} {% block login_button_override %} {% if not request.user.is_authenticated %} {% endif %} {% endblock %} {% block settings_button_override %} {% if request.user.is_staff %}
{% endif %} {% endblock %} {% block exit_button_override %}
x
{% endblock %}
{% endblock %}
{% endblock %} {% block app_content_override %}
{% block flash %} {% if messages %}
{% comment "flash_messages explanation" %} Use the flash messages block to display temporary feedback to the user. Pass a list of dictionaries called "flash_messages". Each dictionary should have the keys "category" and "text". The category can be any of: "success", "info", "warning", and "danger". The category is used to style the message. The text is the text of the message to be displayed. The alerts that will be displayed are dismissible. To create custom alerts, override the "flash" block. {% endcomment %} {% for message in messages %} {% endfor %}
{% endif %} {% endblock %} {# Off canvas navigation menu #} {% block app_navigation_override %}
{% block app_navigation %} {% endblock %}
{% endblock %} {# App content starts here #} {% block inner_app_content %}
{% block app_content %}{% endblock %} {# App actions are fixed to the bottom #} {% block app_actions_override %}
{% block app_actions %}{% endblock %}
{% endblock %}
{% endblock %}
{% endblock %}
{% endblock %} {% comment "after_app_content explanation" %} Use this block for adding elements after the app content such as bootstrap modals. Example: {% block after_app_content %} {% gizmo my_modal %} {% endblock %} {% endcomment %} {% block after_app_content %} {% block modals %} {% endblock %} {% endblock %} {% block terms-of-service-override %} {% show_terms_if_not_agreed %} {% endblock %} {% block page_attributes_override %} {% endblock %} {% block content_dependent_styles %} {% gizmo_dependencies css %} {% endblock %} {% block csrf_token %} {% csrf_token %} {% endblock %} {% comment "scripts explanation" %} Use this block for adding scripts. Call with block.super to include the default scripts. Example: {% block scripts %} {{ block.super }} {% endblock %} {% endcomment %} {% block scripts %} {% block app_base_js %} {% endblock %} {% if tethys_app.enable_feedback %} {% endif %} {% gizmo_dependencies js %} {% endblock %} {% analytical_body_bottom %}