data_explorer/templates/base.html

Summary

Maintainability
Test Coverage
{% load staticfiles data_explorer_tags %}
<!DOCTYPE html>
<html lang="en">
  <head>
    {% comment %}
      Use head_meta or title (but not both) or you'll get duplicate tags.
      If you do use title, you need to provide the full title tag.
      In most cases, use head_meta and let the inclusion tag sort this out for you. 
    {% endcomment %}
    {% block head_meta %}
      {% head_meta %}
    {% endblock %}
    {% block title %}{% endblock %}

    <link href="https://fonts.googleapis.com/css?family=Libre+Franklin:400,700" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">

    <!--[if lte IE 9]>
      <script src="{% static 'frontend/js/vendor/aight.v2.min.js' %}"></script>
      <script src="{% static 'frontend/js/vendor/history.min.js' %}"></script>
    <![endif]-->
    {# load jquery and other shared scripts. Should consider moving to bottom. #}
    <script src="{% static 'frontend/built/js/common.js' %}"></script>
    {% include 'analytics/ga.html' %}
    {% include 'frontend/safe_mode/script_tag.html' %}

    {% block head %}{% endblock %}
  </head>
  <body class="{% block body_class %}{% endblock %}">
    {% include '_banner.html' %}
    <header>
      <div class="container">
        <div class="row">
        {% include '_header.html' %}
        {# Extended header should be placed in this block in descendant templates #}
        {% block header_extension %}{% endblock %}
        {% block header_nav %}
          {% include '_nav.html' %}
        {% endblock %}
        </div>
      </div>
    </header>

    <main id="main" class="{% block main_class %}{% endblock %}">
      <div class="container">
        {% block body %}
        {% endblock %}
      </div>
    </main>

    {% block modals %}  
    {% endblock modals %}
    {% block footer %}
      {% include "_footer.html" %}
    {% endblock %}

    {% if not is_safe_mode_enabled %}
      {% include "analytics/dap.html" %}
      <![if gt IE 8]>
      <script {{ csp_nonce }}>
        if (typeof aight === 'object') {
          document.body.className += ' ie ie' + aight.browser.ie;
        }
      </script>
      <![endif]>
    {% endif %}

    {% block before_body_close %}{% endblock %}
  </body>
</html>