You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/04/15 11:19:24 UTC
(tooling-trusted-releases) branch main updated: Add impersonation banner so users know they're browsing as someone else
This is an automated email from the ASF dual-hosted git repository.
arm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new c18dbfd5 Add impersonation banner so users know they're browsing as someone else
c18dbfd5 is described below
commit c18dbfd54702a48ccf1d5002a0f52afd9be4b98f
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Wed Apr 15 12:19:05 2026 +0100
Add impersonation banner so users know they're browsing as someone else
---
atr/templates/layouts/base.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/atr/templates/layouts/base.html b/atr/templates/layouts/base.html
index 1fc23ea3..d30cc8c1 100644
--- a/atr/templates/layouts/base.html
+++ b/atr/templates/layouts/base.html
@@ -53,6 +53,11 @@
This is <strong>Alpha 2 Software</strong>. You can test the process and download content, but releases must still be committed by hand to <a href="https://dist.apache.org/repos/dist/release/">svn:dist/release</a> (see <a href="https://tooling.apache.org/svn-dist.html">svn-dist Transition Plan 1B</a>).
</div>
{% endif %}
+ {% if current_user and current_user.admin_uid %}
+ <div class="alert alert-warning atr-browse-as-banner" role="alert">
+ <strong>Impersonation active.</strong> You are browsing as <strong>{{ current_user.uid }}</strong> (your real account: <strong>{{ current_user.admin_uid }}</strong>). To return to your own account, log out and log back in.
+ </div>
+ {% endif %}
{% from "macros/flash.html" import render_flash_messages %}
{{ render_flash_messages() }}
{% import 'macros/forms.html' as forms %}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org