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

change word `consumed` in `used`

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