index.html 2.37 KB
Newer Older
christophe siraut's avatar
christophe siraut committed
1
{% extends "base.html" %}
2
{% load i18n %}
christophe siraut's avatar
christophe siraut committed
3

4
5
6
7
8
9
10
{% 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
11
12
{% block chapeau %}
 
chris's avatar
chris committed
13
    <h1><img src="/static/images/nuage_guillaume_boitel.png">Nuages</h1>
christophe siraut's avatar
christophe siraut committed
14
15
    
        <p class="info">
16
        {% trans "Create polls easily, and publish them for your mates, in order to plan meetings or else." %}
christophe siraut's avatar
christophe siraut committed
17
18
19
20
21
        </p>
{% endblock %}

{% block content %} 

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

24
        <p class="icone"><a href='/nuages' 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
25

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


{% if user.is_authenticated %}
chris's avatar
chris committed
30
    <h2>{% trans "My polls" %}</h2>
christophe siraut's avatar
christophe siraut committed
31
32
33
34
35
    {% if object_list %}
        <ul>
        {% for object in object_list %}

        {% ifequal object.author user.username %}
chris's avatar
chris committed
36
37
38
            <li><a href="{{ object.id }}/">{{ object.title }}</a> :
            <a href="{{ object.id }}/edit/">{% trans "edit" %}</a> -
            <a href="{{ object.id }}/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
39
40
41
42
43
44
        {% endifequal %}

        {% endfor %}
        </ul>

    {% else %}
45
        <p>{% trans "No polls are available." %}</p>
christophe siraut's avatar
christophe siraut committed
46
47
    {% endif %}

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>
chris's avatar
chris committed
52
53
54
55
        <li><a href="/user/password/change/">{% trans 'Change password' %}</a></li>
        <li><a href="/user/email/change/">{% trans 'Change email address' %}</a></li>
        <li><a href="/user/logout/">{% trans 'Logout' %}</a></li>
        </ul>
christophe siraut's avatar
christophe siraut committed
56
57
58

{% else %}

chris's avatar
chris committed
59
    <h2>{% trans "Examples" %}</h2>
christophe siraut's avatar
christophe siraut committed
60
61

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

        </ul>
{% endif %}

christophe siraut's avatar
christophe siraut committed
67
<br /><br /><br />
christophe siraut's avatar
christophe siraut committed
68
69
70

{% endblock %}