{% load static site_settings 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 %} {{ site_globals.portal_base_css|load_custom_css|safe }} {% endblock %} {% block global_scripts %} {% endblock %} {% block session_timeout_modal %} {% include 'session_security/all.html' %} {% endblock %} {% block head %}{% endblock %} {% block extrahead %}{% endblock %} {% block blockbots %}{% endblock %} {% analytical_head_bottom %} {# Allows custom attributes to be added to the body tag #} {% analytical_body_top %} {% comment "page explanation" %} The page block allows you to add content to the page. Most of the time it is recommended that you extend one of the page.html templates in order to get the site header and footer. If you need a clean page then this is the block to use. Example: {% block page %}
Some other page content
{% endblock %} {% endcomment %} {% block page %} {% comment "header explanation" %} Override the header on a page by page basis by extending this block. If making sitewide header changes it is preferable to override the header.html file. {% endcomment %} {% block header %} {% include "header.html" %} {% endblock %} {# Use wrapper class to add classes to the content wrapper element #} {% block site_wrapper_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 %} {# The admin pages must override all of these to work properly #} {% block admin_content %} {% block content %}
{% block primary_content %}{% endblock %}
{% endblock %} {% endblock %}
{% endblock %} {% comment "footer explanation" %} Override the footer on a page by page basis by extending this block. If making sitewide header changes it is preferable to override the footer.html-u file. {% endcomment %} {% block footer %} {% include "footer.html" %} {% endblock %} {% endblock %} {% block tos_override %} {% show_terms_if_not_agreed %} {% 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 %} {% endblock %} {% analytical_body_bottom %}