Archived
1
0
Fork 0

app/views/_common/_components/navigation.volt: show both users if the user are impersonating another user.

This commit is contained in:
Henrik Hautakoski 2023-04-30 18:05:27 +02:00
parent bf940f9523
commit a757e95277

View file

@ -12,6 +12,8 @@
data-bs-toggle="dropdown" role="button" aria-expanded="false">
{{ icon('solid/user') }} <strong>{{ auth.getUser().username }}</strong>
{% set imp = auth.getImpersonator() %}
{% if imp %}( {{ icon('solid/user-secret') }} {{ imp.username }} ){% endif %}
</a>
<ul class="dropdown-menu navigation-user-menu-dropdown-list">