{% load static %}

<!DOCTYPE html>
<html
        dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
        xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
        lang="{% firstof LANGUAGE_CODE 'en' %}"
        class="embedded">
<head>
    <base target="_blank" /><!-- Open all links in a new tab, not in the iframe -->

    <meta name="color-scheme" content="light dark">

    <link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
</head>

<body>
<div class="embed_container">
    <div class="container-fluid">
        {% if messages %}
            {% for message in messages %}
                <div class="alert alert-{{ message.level_tag }} alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    {{ message }}
                </div>
            {% endfor %}
        {% endif %}
        <a href="/"><span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span></a>
        {% block content %}
        {% endblock %}
    </div>
</div>
{% include 'partials/dark_theme.html' %}
{% block js %}
{% endblock %}
</body>
</html>
