base.html 991 Bytes
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html lang="fr">
<head>
    <link rel="stylesheet" href="style.css" />
    <title>{% block title %}Bienvenue sur le Sith de l'AE!{% endblock %}</title>
</head>

<body>
    <header>
        {% block header %}
Skia's avatar
Skia committed
11
        {% if user.is_authenticated %}Hello, {{ user.username }}!{% endif %}
Skia's avatar
Skia committed
12
13
14
15
        <ul>
            <li><a href="{% url 'core:register' %}">Register</a></li>
            <li><a href="{% url 'core:login' %}">Login</a></li>
            <li><a href="{% url 'core:logout' %}">Logout</a></li>
Skia's avatar
Skia committed
16
            <li><a href="{% url 'core:user_list' %}">Users</a></li>
Skia's avatar
Skia committed
17
18
19
20
21
        </ul>
        {% endblock %}
    </header>

    <div id="content">
Skia's avatar
Skia committed
22
23
24
        {% if error %}
            {{ error }}
        {% endif %}
Skia's avatar
Skia committed
25
26
27
28
29
30
31
32
        {% block content %}{% endblock %}
    </div>

    <footer>
        {% block footer %}
        Site réalisé par des gens biens
        {% endblock %}
    </footer>
Skia's avatar
Skia committed
33
34
35
36
37
    <!--
    {% block tests %}
        {{ tests }}
    {% endblock %}
    -->
Skia's avatar
Skia committed
38
39
</body>
</html>