show never for access permissions that never expire
This commit is contained in:
parent
146f2df488
commit
2901b0eb30
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
{% for access_permission in user.accesspermissions.all %}
|
||||
<tr>
|
||||
<td>{{ access_permission.access_restriction.title }}</td>
|
||||
<td>{{ access_permission.expire_date }}</td>
|
||||
<td>{% if access_permission.expire_date %}{{ access_permission.expire_date }}{% else %}{% trans 'never' %}{% endif %}</td>
|
||||
<td>{% if access_permission.can_grant %}{% trans 'Yes' %}{% else %}{% trans 'No' %}{% endif %}</td>
|
||||
{% if request.user_permissions.access_all %}
|
||||
<td class="button-cell"><button type="submit" name="delete_access_permission" value="{{ access_permission.pk }}">{% trans 'Delete' %}</button></td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue