base.html 2.28 KB
Newer Older
Christophe Siraut's avatar
Christophe Siraut committed
1
{% load url from future %}
2
3
{% load i18n %}

christophe siraut's avatar
christophe siraut committed
4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
<html xmlns="http://www.w3.org/1999/xhtml">
christophe siraut's avatar
christophe siraut committed
7
<head>
chris's avatar
chris committed
8
    <title> {% block title %} Nuages - {% trans "Easy poll sharing" %} {% endblock %} </title>
christophe siraut's avatar
christophe siraut committed
9
10
    {% block head %}{% endblock %}

11
    <!-- Django stylesheet -->
Christophe Siraut's avatar
Christophe Siraut committed
12
13
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}admin/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}admin/css/forms.css"/>
14
    <!-- Nuages stylesheet -->
Christophe Siraut's avatar
Christophe Siraut committed
15
    <link rel="stylesheet" href="{{ STATIC_URL }}css/nuages.css" />
christophe siraut's avatar
christophe siraut committed
16
17
18
19
20
21

</head>

<body>
    <div id="nheader">

22
23
        <div class="menu">

Christophe Siraut's avatar
Christophe Siraut committed
24
                <a href="{% url 'home' %}" title="Homepage">Nuages</a>&nbsp;
Christophe Siraut's avatar
Christophe Siraut committed
25
                {% block menu %}{% endblock %}
26
                {% if user.is_authenticated %}
Christophe Siraut's avatar
Christophe Siraut committed
27
                    <a href="{% url 'auth_logout' %}">Logout</a>
28
                {% else %}
Christophe Siraut's avatar
Christophe Siraut committed
29
                    <a href="{% url 'auth_login' %}">Login</a>
30
                {% endif %}
31
32
33
34
35
36

                <span class="notify">
        {% if error_message %}
                <!--img src="/static/images/info.png" alt="info" "-->&nbsp; {{ error_message }} 
        {% endif %}

Christophe Siraut's avatar
Christophe Siraut committed
37
                <form style="display:inline" name="langForm" action="/i18n/setlang/" method="post">{% csrf_token %}
38
39
                    <input name="next" type="hidden" value="" />
                    <select name="language" onChange="langForm.submit()" />
40
                    <option value="#" />{{ LANGUAGE_CODE }}</option>
41
                    {% for lang in LANGUAGES %}
42
                    {% ifnotequal lang.0 LANGUAGE_CODE %}
43
                    <option value="{{ lang.0 }}" />{{ lang.0 }}</option>
44
                    {% endifnotequal %}
45
46
47
48
49
                    {% endfor %}
                    </select>
                </form>
                </span>

christophe siraut's avatar
christophe siraut committed
50
        </div>
51
    </div>
christophe siraut's avatar
christophe siraut committed
52
53
54
55
56
57
58
59
60

    <div id="chapeau">
        {% block chapeau %}{% endblock %}
    </div>

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

61
    <div class="menu">
62
        {% block footer %}{% endblock %}
63
	<span class="notify">{% trans "Nuages is brought to you by" %} <a href="http://www.domainepublic.net">Domaine Public</a></span>
64
    </div>
christophe siraut's avatar
christophe siraut committed
65
66
67
68
69
70
    

</body>
</html>