~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/right_boxes.html

  • Committer: franku
  • Date: 2016-07-02 12:38:06 UTC
  • mfrom: (404.2.56 widelands)
  • Revision ID: somal@arcor.de-20160702123806-q69u3d48s1prrxds
merged the django1_8 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 This file is included by mainpage and contains all the left menu boxes
5
5
 on the site
6
6
{% endcomment %}
 
7
 
 
8
 
7
9
{% load inbox %}
8
10
{% load i18n %}
9
 
{% load wlprofile wlpoll wlevents %}
 
11
{% load wlprofile_extras wlpoll_extras wlevents_extras %}
10
12
{% load pybb_extras %}
11
13
{% load online_users %}
12
14
 
13
 
 
14
15
<!-- Donation Box -->
15
16
<div class="columnModule">
16
17
        <h3>Donation</h3>
56
57
                        {% if p.user_has_voted %}
57
58
                                <p class="small">You already voted on this!</p>
58
59
                                <div class="center">
59
 
                                        <input type="button" value="Results" onclick="location='{% url wlpoll_detail p.id %}'" />
 
60
                                        <input type="button" value="Results" onclick="location='{% url 'wlpoll_detail' p.id %}'" />
60
61
                                </div>
61
62
                        {% else %}
62
 
                                <form method="post" action="{% url wlpoll_vote p.id %}">
 
63
                                <form method="post" action="{% url 'wlpoll_vote' p.id %}">
63
64
                                        <ul class="poll">
64
65
                                        {% for c in p.choices.all %}
65
66
                                                <li><input id="{{ c.id }}" class="radio" type="radio" name="choice_id" value="{{ c.id }}" /><label for="{{ c.id }}">{{ c.choice }}</label></li>
67
68
                                        </ul>
68
69
                                        <div class="center">
69
70
                                                <input type="submit" value="Vote" />
70
 
                                                <input type="button" value="Results" onclick="location='{% url wlpoll_detail p.id %}'" />
 
71
                                                <input type="button" value="Results" onclick="location='{% url 'wlpoll_detail' p.id %}'" />
71
72
                                        </div>
72
73
                                        {% csrf_token %}
73
74
                                </form>
74
75
                        {% endif %}
75
76
                {% else %}
76
 
                        <p class="small"><a href="{% url auth_login %}?next={{ request.path|iriencode }}">Log in</a> to vote!</p>
 
77
                        <p class="small"><a href="{% url 'auth_login' %}?next={{ request.path|iriencode }}">Log in</a> to vote!</p>
77
78
                        <div class="center">
78
 
                                <input type="button" value="Results" onclick="location='{% url wlpoll_detail p.id %}'" />
 
79
                                <input type="button" value="Results" onclick="location='{% url 'wlpoll_detail' p.id %}'" />
79
80
                        </div>
80
81
                {% endif %}
81
82
        {% endfor %}
82
83
                <div class="center">
83
 
                        <p><a href="{% url wlpoll_archive %}">Archive</a></p>
 
84
                        <p><a href="{% url 'wlpoll_archive' %}">Archive</a></p>
84
85
                </div>
85
86
        </div>
86
87
</div>
87
88
{% endif %}
88
89
 
89
 
 
90
90
<!-- Future Events if any -->
91
91
{% get_future_events as events %}
92
92
{% if events.count %}         
111
111
<!-- Logged in users -->
112
112
{% online_users 10 %}
113
113
 
114
 
 
115
114
<!-- Latest Post -->
116
115
{% pybb_last_posts %}