mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
user delete fix
This commit is contained in:
parent
0a3a68aee7
commit
a2d4719685
@ -40,13 +40,15 @@
|
||||
<div class="list-group">
|
||||
{% for user in object_list %}
|
||||
<div class="list-group-item clearfix">
|
||||
<a href="{% url 'users:delete' user.username %}"
|
||||
class="btn btn-default btn-sm pull-right"
|
||||
role="button"
|
||||
title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
|
||||
<span class="glyphicon glyphicon-trash"
|
||||
aria-hidden="true"></span>
|
||||
</a>
|
||||
{% if object_list|length != 1 %}
|
||||
<a href="{% url 'users:delete' user.username %}"
|
||||
class="btn btn-default btn-sm pull-right"
|
||||
role="button"
|
||||
title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
|
||||
<span class="glyphicon glyphicon-trash"
|
||||
aria-hidden="true"></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<a class='user-edit-label'
|
||||
href="{% url 'users:edit' user.username %}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user