index.html 2.59 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

Christophe Siraut's avatar
Christophe Siraut committed
5 6
{% block main %}
<h1><img src="{{ STATIC_URL }}images/nuage_guillaume_boitel.png"> Nuages</h1>
christophe siraut's avatar
christophe siraut committed
7

8
<div class="row"> 
Christophe Siraut's avatar
Christophe Siraut committed
9 10 11 12 13
    <p class="span8 lead">
        {% trans "Create polls easily, and publish them for your mates, in order to plan meetings and activities." %}
    </p>
</div>
<br />
14
<div class="row"> 
Christophe Siraut's avatar
Christophe Siraut committed
15 16 17 18 19 20 21 22 23
     <div class="span3 offset1">
         <a href="{% url 'new' %}" title='{% trans "Make an event" %}'  alt='{% trans "Make an event" %}' class="btn btn-link"><img width="20px" src="/static/images/view-calendar-day-2.png"> &nbsp; {% trans "Shedule an event" %}</a>
     </div>
     <div class="span3">
         <a href="{% url 'documentation' %}" title='{% trans "About nuages" %}'  alt='{% trans "Learn more" %}' class="btn btn-link"><img width="20px" src="/static/images/document-send.png"> &nbsp; {% trans "About nuages" %}</a>
     </div>
</div>

<br /><br />
christophe siraut's avatar
christophe siraut committed
24

Christophe Siraut's avatar
Christophe Siraut committed
25
{% block userspecific %}
christophe siraut's avatar
christophe siraut committed
26 27

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

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

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

        <ul>
Christophe Siraut's avatar
Christophe Siraut committed
57
        <li><a href="{% url 'meetingpoll' 'db3a' %}">Quand allons nous au potager?</a></li>
christophe siraut's avatar
christophe siraut committed
58 59 60

        </ul>
{% endif %}
Christophe Siraut's avatar
Christophe Siraut committed
61
{% endblock %} 
Christophe Siraut's avatar
Christophe Siraut committed
62
{% endblock %}
christophe siraut's avatar
christophe siraut committed
63

Christophe Siraut's avatar
Christophe Siraut committed
64 65 66
{% block footer %}
<p>
        {% trans "This page is available in the following languages" %}:
67 68 69 70
{% get_available_languages as languages %}

{% for lang_code, lang_name in languages %}
    {% language lang_code %}
71
    <a href="{% url 'home_translated' %}">{{ lang_name }}</a>
72
    {% endlanguage %}
Christophe Siraut's avatar
Christophe Siraut committed
73 74
{% endfor %}. 
</p>
christophe siraut's avatar
christophe siraut committed
75 76
{% endblock %}