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