base.jinja 3.17 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
    <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') }}">
Skia's avatar
Skia committed
8
9
        <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
10
        <link rel="stylesheet" href="{{ static('core/style.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
        {% if not popup %}
Skia's avatar
Skia committed
17
18
19
20
21
22
23
        <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 %}
24
            <a href="{{ url('core:user_profile', user_id=user.id) }}">{{ user.get_display_name() }}</a> |
Skia's avatar
Skia committed
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>
Skia's avatar
Skia committed
29
30
31
        {% else %}
        <div id="popupheader">{{ user.get_display_name() }}</div>
        {% endif %}
Skia's avatar
Skia committed
32
        {% endblock %}
Skia's avatar
Skia committed
33
        {% block nav %}
Skia's avatar
Skia committed
34
        {% if not popup %}
Skia's avatar
Skia committed
35
36
        <nav>
            <a href="{{ url('core:user_list') }}">{% trans %}Users{% endtrans %}</a>
Skia's avatar
Skia committed
37
38
            <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
39
            <a href="{{ url('club:club_list') }}">{% trans %}Clubs{% endtrans %}</a>
Skia's avatar
Skia committed
40
            <a href="{{ url('core:page', "services") }}">{% trans %}Services{% endtrans %}</a>
Skia's avatar
Skia committed
41
        </nav>
Skia's avatar
Skia committed
42
        {% endif %}
Skia's avatar
Skia committed
43
        {% endblock %}
Skia's avatar
Skia committed
44

Skia's avatar
Skia committed
45
46
        <div id="content">
            {% if error %}
Skia's avatar
Skia committed
47
            {{ error }}
Skia's avatar
Skia committed
48
49
50
51
            {% endif %}
            {% block content %}
            {% endblock %}
        </div>
Skia's avatar
Skia committed
52

Skia's avatar
Skia committed
53
        {% if not popup %}
Skia's avatar
Skia committed
54
55
56
57
58
        <footer>
            {% block footer %}
            {% trans %}Site made by good people{% endtrans %}
            {% endblock %}
        </footer>
Skia's avatar
Skia committed
59
        {% endif %}
Skia's avatar
Skia committed
60
61
62
63
64
        <!--
            {% block tests %}
            {{ tests }}
            {% endblock %}
        -->
65
        {% block script %}
Skia's avatar
Skia committed
66
67
68
69
70
        <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>
71
72
73
74
75
76
77
78
79
80
81
82
$('.select_single').multipleSelect({
    single: true,
    {% if not popup %}
    position: 'top',
    {% endif %}
});
$('.select_multiple').multipleSelect({
    filter: true,
    {% if not popup %}
    position: 'top',
    {% endif %}
});
Skia's avatar
Skia committed
83
        </script>
84
        {% endblock %}
Skia's avatar
Skia committed
85
    </body>
Skia's avatar
Skia committed
86
</html>