base.html 1.93 KB
Newer Older
1 2
{% load staticfiles %}

erdnaxe's avatar
erdnaxe committed
3
<!doctype html>
4
<html lang="fr">
erdnaxe's avatar
erdnaxe committed
5
<head>
erdnaxe's avatar
erdnaxe committed
6 7
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
erdnaxe's avatar
erdnaxe committed
8
    <title>Med : {% block title %}{% endblock %}</title>
erdnaxe's avatar
erdnaxe committed
9 10 11 12

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

    {# 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
24 25
</head>
<body>
erdnaxe's avatar
erdnaxe committed
26 27 28 29 30 31 32 33 34 35

{# 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 }}
36
                </div>
erdnaxe's avatar
erdnaxe committed
37 38 39 40
            {% endfor %}

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

42
        {# Left sidebar #}
erdnaxe's avatar
erdnaxe committed
43 44 45 46 47 48 49
        <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
50 51 52
    </div>
</div>
</body>
53
</html>