base.jinja 2.97 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
    <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') }}">
Skia's avatar
Skia committed
9
10
        <link rel="stylesheet" href="{{ static('core/multiple-select.css') }}">
        <link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
Skia's avatar
Skia committed
11
12
        {% endblock %}
    </head>
Skia's avatar
Skia committed
13

Skia's avatar
Skia committed
14
    <body>
Skia's avatar
Skia committed
15
        {% block header %}
Skia's avatar
Skia committed
16
17
18
19
20
21
22
        <div id="logo"><a href="{{ url('core:index') }}"><img src="{{ static('core/img/logo.png') }}"
                                                              alt="{% trans %}Logo{% endtrans %}" /></a></div>
        <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 %}
23
            <a href="{{ url('core:user_profile', user_id=user.id) }}">{{ user.get_display_name() }}</a> |
Skia's avatar
Skia committed
24
25
26
27
28
            <a href="{{ url('core:user_tools') }}">{% trans %}Tools{% endtrans %}</a> |
            <a href="{{ url('core:logout') }}">{% trans %}Logout{% endtrans %}</a>
            {% endif %}
        </header>
        {% endblock %}
Skia's avatar
Skia committed
29
        {% block nav %}
Skia's avatar
Skia committed
30
31
        <nav>
            <a href="{{ url('core:user_list') }}">{% trans %}Users{% endtrans %}</a>
Skia's avatar
Skia committed
32
33
            <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
34
            <a href="{{ url('club:club_list') }}">{% trans %}Clubs{% endtrans %}</a>
Skia's avatar
Skia committed
35
            <a href="{{ url('core:page', "Services") }}">{% trans %}Services{% endtrans %}</a>
Skia's avatar
Skia committed
36
        </nav>
Skia's avatar
Skia committed
37
        {% endblock %}
Skia's avatar
Skia committed
38

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

Skia's avatar
Skia committed
47
48
49
50
51
52
53
54
55
56
        <footer>
            {% block footer %}
            {% trans %}Site made by good people{% endtrans %}
            {% endblock %}
        </footer>
        <!--
            {% block tests %}
            {{ tests }}
            {% endblock %}
        -->
Skia's avatar
Skia committed
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
        <script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
        <script src="{{ static('core/js/ui/jquery-ui.min.js') }}"></script>
        <script src="{{ static('core/js/multiple-select.js') }}"></script>
        <script src="{{ static('core/js/script.js') }}"></script>
        <script>
    $('select').multipleSelect({
        filter: true,
        single: true,
        {% if not popup %}
        position: 'top',
        {% endif %}
    });
    $('select[multiple=multiple]').multipleSelect({
        filter: true,
        {% if not popup %}
        position: 'top',
        {% endif %}
    });
        </script>
Skia's avatar
Skia committed
76
    </body>
Skia's avatar
Skia committed
77
</html>