app/views/_common/_components/navigation.volt: show both users if the user are impersonating another user.
This commit is contained in:
parent
cd408c2e35
commit
8ae44d8988
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,8 @@
|
||||||
data-bs-toggle="dropdown" role="button" aria-expanded="false">
|
data-bs-toggle="dropdown" role="button" aria-expanded="false">
|
||||||
|
|
||||||
{{ icon('solid/user') }} <strong>{{ auth.getUser().username }}</strong>
|
{{ icon('solid/user') }} <strong>{{ auth.getUser().username }}</strong>
|
||||||
|
{% set imp = auth.getImpersonator() %}
|
||||||
|
{% if imp %}( {{ icon('solid/user-secret') }} {{ imp.username }} ){% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<ul class="dropdown-menu navigation-user-menu-dropdown-list">
|
<ul class="dropdown-menu navigation-user-menu-dropdown-list">
|
||||||
|
|
|
||||||
Reference in a new issue