{% load utility i18n compress %} {% block title %} {% if view.title %} {# Managed properly by the view #} {{ view.title }} {% else %} {# By hand in the template #} {% block subtitle %}{% endblock subtitle%} {% block sitetitle %}{% endblock sitetitle%} {% endif %} {% endblock title %} {% compress css %} {% block css %} {# Twitter bootstrap, but with an included #} {# lizard_ui/lizard-bootstrap.less to overrides bootstrap defaults. #} {# Sprites: all icons (print, info, etc) in one cacheable image. #} {# CSS for jqueryui: "smoothness" theme #} {# CSS for jquery-treeview #} {# Our own css comes last #} {% endblock css %} {% endcompress %} {% compress js %} {% block javascript-in-head %} {# Should probably remain unused. #} {% endblock javascript-in-head %} {% endcompress %} {% block head-extras %} {# Your own totally-unmanaged per-template extra css/javascript/links #} {% endblock head-extras %} {% block modal %} {% include 'lizard_ui/modal_login.html' %} {% endblock %}
{% block page %} {% block header %}
{% endblock header %} {% block main-area %}
{% block content %} {% endblock content %}
{% endblock main-area %} {% endblock page %}
{# Ajax calls need a CSRF token cookie, and this line sends one as a side effect #} {# Minimized jquery and bootstrap scripts. Minimizing with #} {# django-compressor failed. #} {% compress js %} {% block javascript %} {# Jquery, jqueryui jquerytools and jstree #} {% endblock javascript %} {% endcompress %} {% block map-javascript %} {# For lizard-map's wms handling #} {% endblock map-javascript %} {% if google_tracking_code %} {% endif %} {% if view.gauges_site_id %} {% endif %} {% block bottom-extras %} {# Your own totally-unmanaged per-template extra css/javascript/links #} {% endblock bottom-extras %}