<!--
ARCHES - a program developed to inventory and manage immovable cultural heritage.
Copyright (C) 2013 J. Paul Getty Trust and World Monuments Fund

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
{% load static %}
{% load i18n %}
{% load render_bundle from webpack_loader %}
{% load webpack_static from webpack_loader %}

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->

{% if debug %}
    <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':{{ livereload_port }}/livereload.js?snipver=1"></' + 'script>')</script>
{% endif %}

<head>
    {% if app_settings.GOOGLE_ANALYTICS_TRACKING_ID != None %}
    <script async src="https://www.googletagmanager.com/gtag/js?id={{app_settings.GOOGLE_ANALYTICS_TRACKING_ID}}"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', '{{app_settings.GOOGLE_ANALYTICS_TRACKING_ID}}');
    </script>
    {% endif %}
    <title>{% block title %}{{ app_settings.APP_NAME }} {{ app_settings.VERSION }} - {% endblock title %}</title>

    <!-- Meta -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="{% webpack_static 'img/favicon.png' %}" />

    {% block css %}
        {% render_bundle 'css/arches' 'css' %}

        {% if app_settings.ACCESSIBILITY_MODE %}
            {% render_bundle 'css/accessibility' 'css' %}
        {% endif %}

        {% render_bundle 'css/package' 'css' %}
        {% render_bundle 'css/project' 'css' %}
    {% endblock css%}

</head>

<body {% block body_attributes %}class="scroll-y-hidden"{% endblock %}>
    {% block body %}

    {% endblock body %}
</body>

{% block javascript %}
{% endblock javascript %}

</html>
