index.html 2.72 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 6 7 8 9 10 11
{% block head %}
    <meta name="description" lang="fr" content="Nuages, rendez-vous partagés" />
    <meta name="description" lang="en" content="Nuages, easy poll sharing" />
    <meta name="keywords" lang="fr" content="rendez-vous, partagé, GPL, doodle, alternative" />
    <meta name="keywords" lang="en" content="shared, poll, GPL, doodle, alternative" />
{% endblock %}

christophe siraut's avatar
christophe siraut committed
12 13
{% block chapeau %}
 
Christophe Siraut's avatar
Christophe Siraut committed
14
    <h1><img src="{{ STATIC_URL }}images/nuage_guillaume_boitel.png">Nuages</h1>
christophe siraut's avatar
christophe siraut committed
15 16
    
        <p class="info">
17
        {% trans "Create polls easily, and publish them for your mates, in order to plan meetings or else." %}
christophe siraut's avatar
christophe siraut committed
18 19 20 21 22
        </p>
{% endblock %}

{% block content %} 

Christophe Siraut's avatar
Christophe Siraut committed
23
        <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
24

Christophe Siraut's avatar
Christophe Siraut committed
25
        <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
26

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

Christophe Siraut's avatar
Christophe Siraut committed
29
{% block userspecific %}
christophe siraut's avatar
christophe siraut committed
30 31

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

Christophe Siraut's avatar
Christophe Siraut committed
34 35 36 37 38 39 40
    {% 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
41 42 43
        {% endfor %}
        </ul>
    {% else %}
Christophe Siraut's avatar
Christophe Siraut committed
44
        <p>{% trans "No poll created yet." %}</p>
christophe siraut's avatar
christophe siraut committed
45
    {% endif %}
Christophe Siraut's avatar
Christophe Siraut committed
46
    {% endwith %}
christophe siraut's avatar
christophe siraut committed
47

chris's avatar
chris committed
48
    <br />
chris's avatar
chris committed
49
    <h2>{% trans "My account" %}</h2>
chris's avatar
chris committed
50
        <ul>
chris's avatar
chris committed
51
        <li>{% trans "Username" %}: {{user}}</li>
Christophe Siraut's avatar
Christophe Siraut committed
52
        <li><a href="{% url 'auth_password_change' %}">{% trans 'Change password' %}</a></li>
53
        <!--<li><a href="/user/email/change/">{% trans 'Change email address' %}</a></li>-->
Christophe Siraut's avatar
Christophe Siraut committed
54
        <li><a href="{% url 'auth_logout' %}">{% trans 'Logout' %}</a></li>
chris's avatar
chris committed
55
        </ul>
christophe siraut's avatar
christophe siraut committed
56
{% else %}
chris's avatar
chris committed
57
    <h2>{% trans "Examples" %}</h2>
christophe siraut's avatar
christophe siraut committed
58 59

        <ul>
Christophe Siraut's avatar
Christophe Siraut committed
60
        <li><a href="/db3a/">Quand allons nous au potager?</a></li>
christophe siraut's avatar
christophe siraut committed
61 62 63

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

66 67 68 69 70 71 72
<br /><br /><br /><br />

        <span class="notify" style="font-size:0.875em">{% trans "This page is available in the following languages" %}: 
            <a href="/en/nuages">English</a>
            <a href="/fr/nuages">Français</a>
            <a href="/nl/nuages">Nederlands</a>
        </span>
christophe siraut's avatar
christophe siraut committed
73 74 75

{% endblock %}