core: update styling of impersonate banner

This commit is contained in:
Jens Langhammer 2020-07-01 12:01:58 +02:00
parent 5f04a75878
commit 02c1c434a2
1 changed files with 9 additions and 5 deletions

View File

@ -20,11 +20,15 @@
</head> </head>
<body> <body>
{% if 'impersonate_id' in request.session %} {% if 'impersonate_id' in request.session %}
<div class="experimental-pf-bar"> <div class="pf-c-banner pf-m-warning pf-c-alert pf-m-sticky">
<span id="experimentalBar" class="experimental-pf-text"> <div class="pf-l-flex pf-m-justify-content-center pf-m-justify-content-space-between-on-lg pf-m-nowrap" style="height: 100%;">
<div class=""></div>
<div class="pf-u-display-none pf-u-display-block-on-lg">
{% blocktrans with user=user %}You're currently impersonating {{ user }}.{% endblocktrans %} {% blocktrans with user=user %}You're currently impersonating {{ user }}.{% endblocktrans %}
<a href="?__unimpersonate=True" id="acceptMessage">{% trans 'Stop impersonation' %}</a> <a href="?__unimpersonate=True" id="acceptMessage">{% trans 'Stop impersonation' %}</a>
</span> </div>
<div class=""></div>
</div>
</div> </div>
{% endif %} {% endif %}
{% block body %} {% block body %}