Revision 77e2ad52
b/astakos/im/templates/invitations.html | ||
---|---|---|
4 | 4 |
|
5 | 5 |
{% block body %} |
6 | 6 |
<div class="container"> |
7 |
<h3>You have {{ user.invitations }} invitation{{ user.invitations|pluralize }} left.</h3>
|
|
7 |
<h3>You have {{ inviter.invitations }} invitation{{ inviter.invitations|pluralize }} left.</h3>
|
|
8 | 8 |
|
9 | 9 |
<table class="zebra-striped id-sorted"> |
10 | 10 |
<thead> |
... | ... | |
25 | 25 |
</tbody> |
26 | 26 |
</table> |
27 | 27 |
|
28 |
{% if user.invitations %}
|
|
28 |
{% if inviter.invitations %}
|
|
29 | 29 |
<br /> |
30 | 30 |
<h4>Invite someone else:</h4> |
31 | 31 |
<form action="{% url astakos.im.views.invite %}" method="post">{% csrf_token %} |
b/astakos/im/views.py | ||
---|---|---|
215 | 215 |
'realname': inv.realname, |
216 | 216 |
'is_consumed': inv.is_consumed} |
217 | 217 |
for inv in inviter.invitations_sent.all()] |
218 |
kwargs = {'user': inviter,
|
|
218 |
kwargs = {'inviter': inviter,
|
|
219 | 219 |
'sent':sent} |
220 | 220 |
context = get_context(request, extra_context, **kwargs) |
221 | 221 |
return render_response(template_name, |
Also available in: Unified diff