Commit 4ded18d1 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Merge branch 'master' of https://code.grnet.gr/git/astakos

parents f7e8a159 77e2ad52
......@@ -4,7 +4,7 @@
{% block body %}
<div class="container">
<h3>You have {{ user.invitations }} invitation{{ user.invitations|pluralize }} left.</h3>
<h3>You have {{ inviter.invitations }} invitation{{ inviter.invitations|pluralize }} left.</h3>
<table class="zebra-striped id-sorted">
<thead>
......@@ -25,7 +25,7 @@
</tbody>
</table>
{% if user.invitations %}
{% if inviter.invitations %}
<br />
<h4>Invite someone else:</h4>
<form action="{% url astakos.im.views.invite %}" method="post">{% csrf_token %}
......
......@@ -215,7 +215,7 @@ def invite(request, template_name='invitations.html', extra_context={}):
'realname': inv.realname,
'is_consumed': inv.is_consumed}
for inv in inviter.invitations_sent.all()]
kwargs = {'user': inviter,
kwargs = {'inviter': inviter,
'sent':sent}
context = get_context(request, extra_context, **kwargs)
return render_response(template_name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment