index.html 2.56 KB
Newer Older
christophe siraut's avatar
christophe siraut committed
1
{% extends "base.html" %}
Christophe Siraut's avatar
Christophe Siraut committed
2
{% load url from future %}
3
{% load i18n %}
christophe siraut's avatar
christophe siraut committed
4 5

{% block chapeau %}
Christophe Siraut's avatar
Christophe Siraut committed
6
    <h1><img src="{{ STATIC_URL }}images/nuage_guillaume_boitel.png">Nuages</h1>
christophe siraut's avatar
christophe siraut committed
7
    
8
        <p class="filet">
9
        {% trans "Create polls easily, and publish them for your mates, in order to plan meetings and activities." %}
christophe siraut's avatar
christophe siraut committed
10 11 12 13 14
        </p>
{% endblock %}

{% block content %} 

Christophe Siraut's avatar
Christophe Siraut committed
15
        <p class="icone"><a href="{% url 'new' %}" title='{% trans "Make an event" %}'  alt='{% trans "Make an event" %}'><img width="20px" src="/static/images/view-calendar-day-2.png"> &nbsp; {% trans "Shedule an event" %}</a></p>
christophe siraut's avatar
christophe siraut committed
16

Christophe Siraut's avatar
Christophe Siraut committed
17
        <p class="icone"><a href="{% url 'documentation' %}" title='{% trans "About nuages" %}'  alt='{% trans "Learn more" %}'><img width="20px" src="/static/images/document-send.png"> &nbsp; {% trans "About nuages" %}</a></p>
christophe siraut's avatar
christophe siraut committed
18

christophe siraut's avatar
christophe siraut committed
19
        <br /><div style="display:block;clear:both"></div> <br /><br />
christophe siraut's avatar
christophe siraut committed
20

Christophe Siraut's avatar
Christophe Siraut committed
21
{% block userspecific %}
christophe siraut's avatar
christophe siraut committed
22 23

{% if user.is_authenticated %}
chris's avatar
chris committed
24
    <h2>{% trans "My polls" %}</h2>
christophe siraut's avatar
christophe siraut committed
25

Christophe Siraut's avatar
Christophe Siraut committed
26 27 28 29 30 31 32
    {% with user.poll_set.all as polls %}
    {% if polls %}
        <ul>
        {% for poll in polls %}
            <li><a href="{{ poll.link }}">{{ poll.title }}</a> :
            <a href="{{ poll.link }}edit/">{% trans "edit" %}</a> -
            <a href="{{ poll.link }}delete/" onclick="return confirm('{% trans "Are you sure you want to delete this poll?" %}');">{% trans "delete" %}</a></li>
christophe siraut's avatar
christophe siraut committed
33 34 35
        {% endfor %}
        </ul>
    {% else %}
Christophe Siraut's avatar
Christophe Siraut committed
36
        <p>{% trans "No poll created yet." %}</p>
christophe siraut's avatar
christophe siraut committed
37
    {% endif %}
Christophe Siraut's avatar
Christophe Siraut committed
38
    {% endwith %}
christophe siraut's avatar
christophe siraut committed
39

chris's avatar
chris committed
40
    <br />
chris's avatar
chris committed
41
    <h2>{% trans "My account" %}</h2>
chris's avatar
chris committed
42
        <ul>
chris's avatar
chris committed
43
        <li>{% trans "Username" %}: {{user}}</li>
44
        <li><a href="{% url 'profile' %}">{% trans 'Email notifications' %}</a>: {{ user.userprofile.email_notifications }}</li>
Christophe Siraut's avatar
Christophe Siraut committed
45
        <li><a href="{% url 'auth_password_change' %}">{% trans 'Change password' %}</a></li>
46
        <!--<li><a href="/user/email/change/">{% trans 'Change email address' %}</a></li>-->
Christophe Siraut's avatar
Christophe Siraut committed
47
        <li><a href="{% url 'auth_logout' %}">{% trans 'Logout' %}</a></li>
chris's avatar
chris committed
48
        </ul>
christophe siraut's avatar
christophe siraut committed
49
{% else %}
chris's avatar
chris committed
50
    <h2>{% trans "Examples" %}</h2>
christophe siraut's avatar
christophe siraut committed
51 52

        <ul>
Christophe Siraut's avatar
Christophe Siraut committed
53
        <li><a href="/db3a/">Quand allons nous au potager?</a></li>
christophe siraut's avatar
christophe siraut committed
54 55 56

        </ul>
{% endif %}
Christophe Siraut's avatar
Christophe Siraut committed
57
{% endblock %} 
christophe siraut's avatar
christophe siraut committed
58

59 60
<br /><br /><br /><br />

61 62 63 64 65
        <span class="notify" style="font-size:0.875em">{% trans "This page is available in the following languages" %}:
{% get_available_languages as languages %}

{% for lang_code, lang_name in languages %}
    {% language lang_code %}
66
    <a href="{% url 'documentation_trans' %}">{{ lang_name }}</a>
67 68
    {% endlanguage %}
{% endfor %} 
69
        </span>
christophe siraut's avatar
christophe siraut committed
70 71 72

{% endblock %}