mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
user delete fix
This commit is contained in:
parent
0a3a68aee7
commit
a2d4719685
@ -40,6 +40,7 @@
|
|||||||
<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">
|
||||||
|
{% if object_list|length != 1 %}
|
||||||
<a href="{% url 'users:delete' user.username %}"
|
<a href="{% url 'users:delete' user.username %}"
|
||||||
class="btn btn-default btn-sm pull-right"
|
class="btn btn-default btn-sm pull-right"
|
||||||
role="button"
|
role="button"
|
||||||
@ -47,6 +48,7 @@
|
|||||||
<span class="glyphicon glyphicon-trash"
|
<span class="glyphicon glyphicon-trash"
|
||||||
aria-hidden="true"></span>
|
aria-hidden="true"></span>
|
||||||
</a>
|
</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