base.jinja 1.65 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
<!DOCTYPE html>
<html lang="fr">
<head>
    {% block head %}
    <title>{% block title %}Bienvenue sur le Sith de l'AE!{% endblock %}</title>
6
7
    <link rel="stylesheet" href="{{ static('core/base.css') }}">
    <link rel="stylesheet" href="{{ static('core/form.css') }}">
Skia's avatar
Skia committed
8
9
10
11
12
13
14
    <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>
15
16
    <div id="logo"><a href="{{ url('core:index') }}"><img src="{{ static('core/img/logo.png') }}" alt="Logo" /></a></div>
    {% block header %}
Skia's avatar
Skia committed
17
    <header>
18
        {% if not user.is_authenticated() %}
Skia's avatar
Skia committed
19
20
            <a href="{{ url('core:login') }}">Login</a> |
            <a href="{{ url('core:register') }}">Register</a>
21
22
23
24
        {% else %}
            <a href="{{ url('core:user_profile', user_id=user.id) }}">{{ user.get_display_name() }}</a> |
            <a href="{{ url('core:user_tools') }}">Tools</a> |
            <a href="{{ url('core:logout') }}">Logout</a>
Skia's avatar
Skia committed
25
26
        {% endif %}
    </header>
27
28
29
30
31
32
    {% endblock %}
    <nav>
        <a href="{{ url('core:user_list') }}">Users</a>
        <a href="{{ url('core:page', page_name="Index") }}">Pages</a>
        <a href="{{ url('club:club_list') }}">Clubs</a>
    </nav>
Skia's avatar
Skia committed
33
34
35
36
37
38
39
40
41
42
43
44
45

    <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
46
47
48
49
50
    <!--
    {% block tests %}
        {{ tests }}
    {% endblock %}
    -->
Skia's avatar
Skia committed
51
52
</body>
</html>