Commit 1fefe48c authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

change word `consumed` in `used`

parent 2cbaacd5
......@@ -3,6 +3,6 @@
{% block body %}
<ul class="unstyled">
<li><strong>{{ stats.users }}</strong> User{{ stats.users|pluralize }} (<strong>{{ stats.pending }}</strong> pending)</li>
<li><strong>{{ stats.invitations }}</strong> Invitation{{ stats.invitations|pluralize }} sent (<strong>{{ stats.invitations_consumed }}</strong> consumed)</li>
<li><strong>{{ stats.invitations }}</strong> Invitation{{ stats.invitations|pluralize }} sent (<strong>{{ stats.invitations_consumed }}</strong> used)</li>
</ul>
{% endblock body %}
......@@ -23,7 +23,7 @@
<th>Code</th>
<th>Inviter email</th>
<th>Inviter Real Name</th>
<th>Is consumed</th>
<th>Is used?</th>
<th>Created</th>
<th>Consumed</th>
</tr>
......
......@@ -12,12 +12,12 @@
<tr>
<th>Email</th>
<th>Real Name</th>
<th>Consumed</th>
<th>Used</th>
</tr>
</thead>
<tbody>
{% for inv in sent %}
<tr class="{% if inv.is_consumed %}consumed{% endif %}">
<tr class="{% if inv.is_consumed %}used{% endif %}">
<td>{{ inv.email }}</td>
<td>{{ inv.realname }}</td>
<td class="consumed">{% if inv.is_consumed %}Yes{% else %}No{% endif %}</td>
......
......@@ -116,7 +116,7 @@ def get_invitation(request):
return
invitation = Invitation.objects.get(code = code)
if invitation.is_consumed:
raise ValueError(_('Invitation is consumed'))
raise ValueError(_('Invitation is used'))
try:
AstakosUser.objects.get(email = invitation.username)
raise ValueError(_('Email: %s is reserved' % invitation.username))
......
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