It feels a little thiefy, but from my point of view, is this too easy, brilliant and good to not conserve it from slack. And because he doesn’t want to, here we are. Thanks Melvin for hosting with us 🙈
Melvin Achterhuis just post this:
{% sw_extends '@Administration/administration/index.html.twig' %}
{% block administration_templates %}
{{ parent() }}
{% if '.test' or '.our-test-domain.com' in app.request.schemeAndHttpHost %}
<style>
body .sw-desktop__content::before {
content: 'Test environment';
background-color: red;
font-weight: bold;
color: white;
display: flex;
padding: 16px 0;
justify-content: center;
}
</style>
{% endif %}
{% endblock %}
And added a screenshot, showing the shopware administration with a bold red banner at the top “Test environment”.