{% load load_paper i18n static %}{% load_paper as paper %}<!DOCTYPE html>
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
<html class="no-js" lang="{{ LANGUAGE_CODE|default:"en"|slice:"2" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
  <meta charset="utf-8">
  {% block preload %}
    <link rel="preload" href="{% static 'paper_admin/dist/app.min.css' %}" as="style">
    <link rel="preload" href="{% static 'paper_admin/dist/app.bundle.min.js' %}" as="script">
  {% endblock %}

  <title>{% block title %}{% endblock %}</title>
  <meta http-equiv="content-type" content="text/html">
  <meta name="referrer" content="unsafe-url">
  <meta name="google" content="notranslate">
  <meta name="format-detection" content="telephone=no">
  <meta name="msapplication-tap-highlight" content="no">
  <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="theme-color" content="#3b91ca">
  {% block blockbots %}<meta name="robots" content="none,noarchive"/>{% endblock %}
  {% block meta %}{% endblock %}

  {# Favicon #}
  {% block favicon %}
    <link rel="icon" type="image/png" sizes="32x32" href="{% static "paper_admin/dist/image/favicon.png" %}">
  {% endblock %}

  {# CSS #}
  {% block styles %}
    <link rel="stylesheet" href="{% static 'paper_admin/dist/app.min.css' %}">
  {% endblock %}
  {% block extrastyle %}{% endblock %}

  {# Critical JS #}
  <script>
      document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, 'js');
  </script>

  {% block extrahead %}{% endblock %}
</head>
<body class="{{ is_popup|yesno:"popup," }} {% block bodyclass %}{% endblock %}"
      data-admin-utc-offset="{% now "Z" %}">
  <div id="paper-page">
    {% if not is_popup %}
      {% block sidebar %}{% endblock %}
    {% endif %}

    <div id="paper-content">
      {% block header %}{% endblock %}

      {% if not is_popup %}
        {% spaceless %}{% block breadcrumbs %}{% endblock %}{% endspaceless %}
      {% endif %}

      {% block messages %}{% endblock %}

      <main id="paper-main" class="mb-auto">
        {% block content_wrapper %}{% endblock %}
      </main>

      {% if not is_popup %}
        {% block footer %}{% endblock %}
      {% endif %}
    </div>
  </div>

  {% block scripts %}
    <script src="{% static 'paper_admin/dist/app.bundle.min.js' %}"></script>
  {% endblock %}
</body>
</html>
