<!--
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/>.
-->
{% extends "base-root.htm" %}

{% load i18n %}
{% load render_bundle from webpack_loader %}

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

{% block title %}{{ app_settings.APP_NAME }} - {% endblock title %}

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

    {% if app_settings.ACTIVE_LANGUAGE_DIR == "rtl" %}
        {% render_bundle 'css/rtl' 'css' %}
    {% endif %}

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

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

{% block body_attributes %}class="scroll-y-auto"{% endblock %}

{% block loading_mask %}
<div class="loading-mask" data-bind="visible: typeof(loading()) === 'boolean' && loading()"></div>

<div class="loading-mask" style="display: none;" data-bind="visible: typeof(loading())==='string' && loading().length > 0">
    <div class="loading-mask-string" data-bind="text: loading"></div>
</div>
{% endblock loading_mask %}

{% block arches_modules %}
    {% include 'javascript.htm' %}
{% endblock arches_modules %}
