]> git.ipfire.org Git - pbs.git/commitdiff
users: Drop impersonation template
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Oct 2022 17:12:17 +0000 (17:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Oct 2022 17:12:17 +0000 (17:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/user-impersonation.html [deleted file]

index 8991f99e588914768e367bc79b9c3e38691aac6c..2bec20f06215ab48f95adc5914284b0f264c2566 100644 (file)
@@ -177,7 +177,6 @@ dist_templates_DATA = \
        src/templates/queue.html \
        src/templates/search.html \
        src/templates/source-list.html \
-       src/templates/user-impersonation.html \
        src/templates/user-profile-edit-fail.html \
        src/templates/user-profile-edit.html
 
diff --git a/src/templates/user-impersonation.html b/src/templates/user-impersonation.html
deleted file mode 100644 (file)
index 81b41af..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ _("Impersonate user %s") % user.realname }}{% end block %}
-
-{% block body %}
-       <div class="row">
-               <div class="col-12 col-sm-12 col-md-9 col-lg-10 col-xl-10">
-                       <h2 style="word-wrap: break-word;">
-                               {{ _("User impersonation") }}: {{ user.realname }}
-                       </h2>
-               </div>
-       </div>
-
-       <div class="row">
-               <div class="col-12 col-sm-12 col-md-4 col-lg-3 col-xl-3 mb-2">
-                       <div class="d-flex justify-content-center justify-content-md-start">
-                               <img class="img-fluid" src="{{ user.avatar(200) }}" alt="{{ user.name }}" />
-                       </div>
-               </div>
-               <div class="col-12 col-sm-12 col-md-8 col-lg-9 col-xl-9">
-                       <p>
-                               {{ _("When impersonating another user, every action you perform will be taking place as if you had logged in as the user whom will be impersonating.") }}
-                       </p>
-
-                       <div class="alert alert-danger">
-                               <h4 class="alert-heading">{{ _("Use with caution!") }}</h4>
-                               {{ _("This is a very powerful feature. You should be very careful while using it.") }}
-                       </div>
-               </div>
-       </div>
-       <div class="row justify-content-end">
-               <div class="col-12 col-sm-12 col-md-5 col-lg-4 col-xl-3">
-                       <form method="POST" action="">
-                               {% raw xsrf_form_html() %}
-                               <input type="hidden" name="user" value="{{ user.name }}" />
-                               <button type="submit" class="btn btn-block btn-danger">{{ _("Impersonate %s") % user.realname }}</button>
-                       </form>
-               </div>
-       </div>
-{% end block %}