{% extends 'base-theme.html' %}
{% load gadjo i18n static combo %}

{% block global_title %}
{% firstof global_title "Grenoble-Alpes Métropole" %} {% block title %}{% endblock %}
{% endblock %}

{% block head %}
    {% if meta_description %}
    <meta name="description" content="{{ meta_description }}" >
    {% endif %}
    {% if meta_robots %}
    <meta name="robots" content="{{ meta_robots }}" />
    {% elif environment_label %}
    <meta name="robots" content="noindex, nofollow, noarchive, nosnippet, notranslate, noimageindex" />
    {% endif %}
    {% if meta_keywords %}
    <meta name="keywords" content="{{ meta_keywords }}" />
    {% endif %}
    {% block meta_icons %}{% endblock %}
    {% block extra_top_head %}
    {% endblock %}
    {{ media }}
    <link rel="stylesheet" type="text/css" href="{{site_base}}{% static 'grenoble-metropole-2019/style.css' %}?{% start_timestamp %}">
    {% block extra_css %}
    {% endblock %}
    {% block extra_scripts %}
    {% endblock %}
    {% if pwa_display == "standalone" %}
    <meta name="apple-mobile-web-app-capable" content="yes">
    {% endif %}
    <meta name="msapplication-navbutton-color" content="{{theme_color}}">
    <meta name="apple-mobile-web-app-title" content="{% firstof global_title site_title "Compte Citoyen" %}">
    <link rel="manifest" href="{{site_base}}/manifest.json">
{% endblock %}

{% block bodyargs %}class="touch-ok {% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %}

{% block grenoble-content %}
  {% block before-main-content %}
  {% endblock %}

<div id="main-content-wrapper">
  <div id="main-content">
    {% block messages %}
    {% if messages %}
    <div id="messages">
      <ul class="messages">
        {% for message in messages %}
      <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
      {% endfor %}
      </ul>
    </div>
    {% endif %}
    {% endblock %}
    <div id="content" class="gru-content">
      {% block content %}
      {% endblock %}
    </div>
  </div>
{% endblock %}

{% block tracking %}
  {% include "includes/tracking.html" %}
{% endblock %}
