aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/registration/base_admin.html12
-rw-r--r--templates/registration/base_client.html12
-rw-r--r--version.txt2
3 files changed, 25 insertions, 1 deletions
diff --git a/templates/registration/base_admin.html b/templates/registration/base_admin.html
index 1f484e6..9643e35 100644
--- a/templates/registration/base_admin.html
+++ b/templates/registration/base_admin.html
@@ -87,6 +87,18 @@
<title>{% block title %}Scout Brega{% endblock %}</title>
</head>
<body>
+ {% if request.user.is_impersonate %}
+ <div class="navbar-fixed" style="height: 32px; line-height: 32px;">
+ <nav style="height: 32px; line-height: 32px;">
+ <div class="nav-wrapper">
+ <p style="margin-top: 0px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px;">
+ Stai impersonando l'utente {{request.user}}
+ <a href="{% url 'impersonate-stop' %}" style="text-decoration: underline;">Chiudi impersonazione</a>
+ </p>
+ </div>
+ </nav>
+ </div>
+ {% endif %}
<nav class="nav-extended">
<form id="su_change" method="post" action="{% url 'server'%}">
{% csrf_token %}
diff --git a/templates/registration/base_client.html b/templates/registration/base_client.html
index 2518988..e23482a 100644
--- a/templates/registration/base_client.html
+++ b/templates/registration/base_client.html
@@ -107,6 +107,18 @@
<title>{% block title %}Scout Brega{% endblock %}</title>
</head>
<body>
+ {% if request.user.is_impersonate %}
+ <div class="navbar-fixed" style="height: 32px; line-height: 32px;">
+ <nav style="height: 32px; line-height: 32px;">
+ <div class="nav-wrapper">
+ <p style="margin-top: 0px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px;">
+ Stai impersonando l'utente {{request.user}}
+ <a href="{% url 'impersonate-stop' %}" style="text-decoration: underline;">Chiudi impersonazione</a>
+ </p>
+ </div>
+ </nav>
+ </div>
+ {% endif %}
<nav class="nav-extended">
<form id="user_form" method="post" action="{% url 'user_switcher'%}">
{% csrf_token %}
diff --git a/version.txt b/version.txt
index 69dd115..45dce68 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.7
-rev=15
+rev=16