Skip to content
Snippets Groups Projects
Verified Commit 9834487d authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Remove impersonation page

parent 7d76040f
No related branches found
No related tags found
1 merge request!815Resolve "Impersonation page looks disgusting 🤮"
Pipeline #44907 passed with warnings
......@@ -183,17 +183,6 @@ MENUS = {
),
],
},
{
"name": _("Impersonation"),
"url": "impersonate-list",
"icon": "people",
"validators": [
(
"aleksis.core.util.predicates.permission_validator",
"core.impersonate_rule",
),
],
},
{
"name": _("Configuration"),
"url": "preferences_site",
......
{# -*- engine:django -*- #}
{# Derived from the original template in django-impersonate #}
{% extends "core/base.html" %}
{% load i18n %}
{% block browser_title %}{% trans "Impersonate" %}{% endblock %}
{% block page_title %}{% trans "Impersonate" %}{% endblock %}
{% block content %}
{% if page.object_list %}
<div class="collection">
{% for user in page.object_list %}
<a class="collection-item" href="{% url 'impersonate-start' user.pk %}{{ redirect }}">
{{ user }}
</a>
{% endfor %}
</div>
{% endif %}
{% if page.has_previous %}
<a href="{% url 'impersonate-list' %}?page={{ page.previous_page_number }}">Previous Page</a> &nbsp;
{% endif %}
{% if page.has_next %}
<a href="{% url 'impersonate-list' %}?page={{ page.next_page_number }}">Next Page</a> &nbsp;
{% endif %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment