mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 21:33:12 -04:00
Only show archive user link for active users
This commit is contained in:
@@ -38,11 +38,13 @@
|
||||
{{ user.failed_login_count }} failed login attempts
|
||||
</p>
|
||||
{% endif %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
||||
<a href="{{ url_for('main.archive_user', user_id=user.id) }}">
|
||||
Archive user
|
||||
</a>
|
||||
</span>
|
||||
{% if user.state == 'active' %}
|
||||
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
||||
<a href="{{ url_for('main.archive_user', user_id=user.id) }}">
|
||||
Archive user
|
||||
</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user