base.jinja 1.64 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="fr">
<head>
    {% block head %}
    <title>{% block title %}Bienvenue sur le Sith de l'AE!{% endblock %}</title>
    <link rel="stylesheet" href="{{ static('core/style.css') }}">
    <script src="{{ static('core/script.js') }}"></script>
    <script src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
    {% endblock %}
</head>

<body>
    <header>
        {% block header %}
        {% if user.is_authenticated() %}Hello, {{ user.username }}!{% endif %}
        <ul>
            {% if not user.is_authenticated() %}
            <li><a href="{{ url('core:register') }}">Register</a></li>
            <li><a href="{{ url('core:login') }}">Login</a></li>
            {% else %}
            <li><a href="{{ url('core:logout') }}">Logout</a></li>
            {% endif %}
        </ul>
        {% if user.is_authenticated() %}
        <ul>
            <li><a href="{{ url('core:user_profile', user_id=user.id) }}">Profile</a></li>
Skia's avatar
Skia committed
27
            <li><a href="{{ url('core:user_tools') }}">Tools</a></li>
Skia's avatar
Skia committed
28
            <li><a href="{{ url('core:user_list') }}">Users</a></li>
Skia's avatar
Skia committed
29
            <li><a href="{{ url('core:page', page_name="Index") }}">Pages</a></li>
30
            <li><a href="{{ url('club:club_list') }}">Clubs</a></li>
Skia's avatar
Skia committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
        </ul>
        {% endif %}
        {% endblock %}
    </header>

    <div id="content">
        {% if error %}
            {{ error }}
        {% endif %}
        {% block content %}{% endblock %}
    </div>

    <footer>
        {% block footer %}
        Site réalisé par des gens biens
        {% endblock %}
    </footer>
Skia's avatar
Skia committed
48
49
50
51
52
    <!--
    {% block tests %}
        {{ tests }}
    {% endblock %}
    -->
Skia's avatar
Skia committed
53
54
</body>
</html>