base.html 2.93 KB
Newer Older
1
{% load url from future %}{% load i18n %}{% load staticfiles %}<!DOCTYPE html>
2
<html>
christophe siraut's avatar
christophe siraut committed
3
<head>
4
5
6
7
    <title>{% block title %}Nuages - {% trans "Easy poll sharing" %}{% endblock %}</title>
    <meta charset="UTF-8" />
    <meta name="description" lang="{{ LANGUAGE_CODE }}" content="Nuages, {% trans 'Easy poll sharing' %}. {% trans "Create polls easily, and publish them for your mates, in order to plan meetings and activities." %} " />
    <meta name="keywords" lang="{{ LANGUAGE_CODE }}" content="{% trans 'meeting, shared, poll, plan, GPL, alternative, free, django, domaine public' %}" />
Christophe Siraut's avatar
Christophe Siraut committed
8
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
Christophe Siraut's avatar
Christophe Siraut committed
9
10
11
    <!--[if lt IE 9]>
      <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/r29/html5.min.js"></script>
     <![endif]-->
12
13
14
15
16
    <link rel="stylesheet" type="text/css" href="{% static 'css/normalize.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'css/django-messages.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap.min.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'css/tobald.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'css/nuages.css' %}" />
Christophe Siraut's avatar
Christophe Siraut committed
17
18
    <script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'bootstrap/js/bootstrap.min.js' %}"></script>
Christophe Siraut's avatar
Christophe Siraut committed
19
    {% block head %}{% endblock %}
christophe siraut's avatar
christophe siraut committed
20
21
22
</head>

<body>
Christophe Siraut's avatar
Christophe Siraut committed
23
24
25
26
27
28
29
30
31
32
33
34
<div>
{% for message in messages %}
    <div class="alert{% if message.tags %} alert-{% if message.tags == 'error' %}danger{% else %}{{ message.tags }}{% endif %}{% endif %} alert-dismissable">
       <div class="box">
           <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&#215;</button>
           {{ message|safe }}
        </div>
    </div>
{% endfor %}
</div>

<div class="navi box">
35
36
37
38
      <ul>
        <li><a href="{% url 'home' %}" title='{% trans "Homepage" %}'>Nuages</a></li>
        {% block menu %}{% endblock %}
        {% if user.is_authenticated %}
39
        <li><a href="{% url 'account_logout' %}">{% trans 'Logout' %}</a></li>
40
        {% else %}
41
        <li><a href="{% url 'account_login' %}">{% trans 'Login' %}</a></li>
42
43
        {% endif %}
      </ul>
Christophe Siraut's avatar
Christophe Siraut committed
44
</div>
christophe siraut's avatar
christophe siraut committed
45

Christophe Siraut's avatar
Christophe Siraut committed
46
<div class="box">
47
        {% block main %}{% endblock %}
48
        {% block content %}{% endblock %}
49
50
51
52
</div>

<br /><br />

Christophe Siraut's avatar
Christophe Siraut committed
53
<div class="navi box">
Christophe Siraut's avatar
Christophe Siraut committed
54
    {% block footer %}{% endblock %}
55
56
57
58
59
60
61
62
63
64
65
<p>
        {% trans "This page is available in the following languages" %}:
{% get_available_languages as languages %}

{% for lang_code, lang_name in languages %}
    {% language lang_code %}
    <a href="{% url 'home_translated' %}">{{ lang_name }}</a>
    {% endlanguage %}
{% endfor %}.
</p>

66
        <p><a href="/doc/">Documentation, ranslation, hacking</a></p>
Christophe Siraut's avatar
Christophe Siraut committed
67
68
69
        <p>{% trans "Nuages is brought to you by" %} <a href="http://www.domainepublic.net">Domaine Public</a>.<p>
</div>

Christophe Siraut's avatar
Christophe Siraut committed
70
    {% block js %}{% endblock %}
christophe siraut's avatar
christophe siraut committed
71
72
</body>
</html>