base.jinja 2.2 KB
Newer Older
Skia's avatar
Skia committed
1
2
<!DOCTYPE html>
<html lang="fr">
Skia's avatar
Skia committed
3
4
5
6
7
8
9
10
11
    <head>
        {% block head %}
        <title>{% block title %}{% trans %}Welcome!{% endtrans %}{% endblock %}</title>
        <link rel="stylesheet" href="{{ static('core/base.css') }}">
        <link rel="stylesheet" href="{{ static('core/form.css') }}">
        <link rel="stylesheet" href="{{ static('core/style.css') }}">
        <script src="{{ static('core/script.js') }}"></script>
        {% endblock %}
    </head>
Skia's avatar
Skia committed
12

Skia's avatar
Skia committed
13
14
15
16
17
18
19
20
21
    <body>
        <div id="logo"><a href="{{ url('core:index') }}"><img src="{{ static('core/img/logo.png') }}"
                                                              alt="{% trans %}Logo{% endtrans %}" /></a></div>
        {% block header %}
        <header>
            {% if not user.is_authenticated() %}
            <a href="{{ url('core:login') }}">{% trans %}Login{% endtrans %}</a> |
            <a href="{{ url('core:register') }}">{% trans %}Register{% endtrans %}</a>
            {% else %}
22
            <a href="{{ url('core:user_profile', user_id=user.id) }}">{{ user.get_display_name() }}</a> |
Skia's avatar
Skia committed
23
24
25
26
27
28
29
            <a href="{{ url('core:user_tools') }}">{% trans %}Tools{% endtrans %}</a> |
            <a href="{{ url('core:logout') }}">{% trans %}Logout{% endtrans %}</a>
            {% endif %}
        </header>
        {% endblock %}
        <nav>
            <a href="{{ url('core:user_list') }}">{% trans %}Users{% endtrans %}</a>
Skia's avatar
Skia committed
30
31
            <a href="{{ url('core:page', page_name="Index") }}">{% trans %}Wiki{% endtrans %}</a>
            <a href="{{ url('core:page_list') }}">{% trans %}Pages{% endtrans %}</a>
Skia's avatar
Skia committed
32
            <a href="{{ url('club:club_list') }}">{% trans %}Clubs{% endtrans %}</a>
Skia's avatar
Skia committed
33
            <a href="{{ url('core:page', "Services") }}">{% trans %}Services{% endtrans %}</a>
Skia's avatar
Skia committed
34
        </nav>
Skia's avatar
Skia committed
35

Skia's avatar
Skia committed
36
37
        <div id="content">
            {% if error %}
Skia's avatar
Skia committed
38
            {{ error }}
Skia's avatar
Skia committed
39
40
41
42
            {% endif %}
            {% block content %}
            {% endblock %}
        </div>
Skia's avatar
Skia committed
43

Skia's avatar
Skia committed
44
45
46
47
48
49
50
51
52
53
54
        <footer>
            {% block footer %}
            {% trans %}Site made by good people{% endtrans %}
            {% endblock %}
        </footer>
        <!--
            {% block tests %}
            {{ tests }}
            {% endblock %}
        -->
    </body>
Skia's avatar
Skia committed
55
</html>