base.html 2.39 KB
Newer Older
1
{% load staticfiles %}
erdnaxe's avatar
erdnaxe committed
2
{% load i18n %}
3

erdnaxe's avatar
erdnaxe committed
4
<!doctype html>
erdnaxe's avatar
erdnaxe committed
5 6
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
erdnaxe's avatar
erdnaxe committed
7
<head>
erdnaxe's avatar
erdnaxe committed
8 9
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
erdnaxe's avatar
erdnaxe committed
10
    <title>{% trans "Med" %} : {% block title %}{% endblock %}</title>
erdnaxe's avatar
erdnaxe committed
11 12

    {# CSS style #}
erdnaxe's avatar
erdnaxe committed
13 14
    <link rel="stylesheet" href="{% static "bootstrap/dist/css/bootstrap.min.css" %}">
    <link rel="stylesheet" href="{% static "open-iconic/font/css/open-iconic-bootstrap.min.css" %}">
erdnaxe's avatar
erdnaxe committed
15 16 17 18 19 20 21 22 23 24 25

    {# Favicon #}
    <link rel="apple-touch-icon" sizes="180x180" href="{% static "/images/apple-touch-icon.png" %}">
    <link rel="icon" type="image/png" sizes="32x32" href="{% static "/images/favicon-32x32.png" %}">
    <link rel="icon" type="image/png" sizes="16x16" href="{% static "/images/favicon-16x16.png" %}">
    <link rel="manifest" href="{% static "/images/site.webmanifest" %}">
    <link rel="mask-icon" href="{% static "/images/safari-pinned-tab.svg" %}" color="#5bbad5">
    <link rel="shortcut icon" href="{% static "/images/favicon.ico" %}">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="msapplication-config" content="{% static "/images/browserconfig.xml" %}">
    <meta name="theme-color" content="#ffffff">
erdnaxe's avatar
erdnaxe committed
26 27
</head>
<body>
erdnaxe's avatar
erdnaxe committed
28 29 30 31 32 33 34 35 36 37

{# Top navbar #}
{% include "navbar.html" %}

<div class="container-fluid">
    <div class="row">
        <main role="main" class="col-lg-10 p-5 order-lg-12">
            {% for message in messages %}
                <div class="alert {{ message.tags }} alert-dismissible" role="alert">
                    {{ message }}
38
                </div>
erdnaxe's avatar
erdnaxe committed
39 40 41 42
            {% endfor %}

            {% block content %}{% endblock %}
        </main>
43

44
        {# Left sidebar #}
45 46 47 48 49 50 51
        <nav class="col-lg-2 bg-light sidebar shadow order-lg-1">
            {# Let pages put content here #}
            {% block sidebar_nav %}{% endblock %}

            {# Other sidebar content #}
            {% include "sidebar.html" with sidebar_nav=sidebar_nav %}
        </nav>
erdnaxe's avatar
erdnaxe committed
52 53
    </div>
</div>
erdnaxe's avatar
erdnaxe committed
54 55 56 57 58

{# Optional JavaScript #}
<script src="{% static "jquery/dist/jquery.slim.min.js" %}"></script>
<script src="{% static "popper.js/dist/popper.min.js" %}"></script>
<script src="{% static "bootstrap/dist/js/bootstrap.min.js" %}"></script>
erdnaxe's avatar
erdnaxe committed
59
</body>
60
</html>