manager: remove unused test on table templates (#47057)

This commit is contained in:
Nicolas Roche 2020-09-27 18:53:11 +02:00
parent 14f37aeedd
commit c37db0f8e2
4 changed files with 0 additions and 8 deletions

View File

@ -2,11 +2,9 @@
{% load i18n %}
{% if perms.auth.change_group %}
{% block table.head.last.column %}
<th></th>
{% endblock %}
{% block table.tbody.last.column %}
<td class="remove-icon-column">{% if table.context.view.can_manage_members and row.record.direct %}<a class="js-remove-object" data-confirm="{% blocktrans with username=row.record.get_full_name role=table.context.object %}Do you really want to remove user &quot;{{ username }}&quot; from role &quot;{{ role }}&quot;&nbsp;?{% endblocktrans %}" href="#" data-pk-arg="user"><span class="icon-remove-sign"></span></a>{% endif %}</td>
{% endblock %}
{% endif %}

View File

@ -2,11 +2,9 @@
{% load i18n %}
{% if perms.auth.change_group %}
{% block table.head.last.column %}
<th></th>
{% endblock %}
{% block table.tbody.last.column %}
<td class="remove-icon-column">{% if table.context.view.can_change %}<a class="js-remove-object" href="#" data-pk-arg="permission"><span class="icon-remove-sign"></span></a>{% endif %}</td>
{% endblock %}
{% endif %}

View File

@ -2,11 +2,9 @@
{% load i18n %}
{% if perms.auth.change_group %}
{% block table.head.last.column %}
<th></th>
{% endblock %}
{% block table.tbody.last.column %}
<td class="remove-icon-column">{% if table.context.view.can_change %}<a class="js-remove-object" data-confirm="{% blocktrans with name=row.record.name slug=table.context.object %}Do you really want to remove role &quot;{{ name }}&quot; from service &quot;{{ slug }}&quot;&nbsp;?{% endblocktrans %}" href="#" data-pk-arg="role"><span class="icon-remove-sign"></span></a>{% endif %}</td>
{% endblock %}
{% endif %}

View File

@ -2,7 +2,6 @@
{% load i18n %}
{% if perms.auth.change_group %}
{% block table.head.last.column %}
<th></th>
{% endblock %}
@ -13,4 +12,3 @@
{% endif %}
</td>
{% endblock %}
{% endif %}