Use a different-colored favicon in development mode

This commit is contained in:
Raphael Michel
2019-10-07 09:03:46 +02:00
parent 749ddbf21c
commit cb37e7435d
7 changed files with 32 additions and 13 deletions

View File

@@ -30,6 +30,8 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{ settings.favicon|thumb:'32x32^' }}">
<link rel="icon" type="image/png" sizes="194x194" href="{{ settings.favicon|thumb:'194x194^' }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ settings.favicon|thumb:'16x16^' }}">
{% elif development_warning or debug_warning %}
<link rel="shortcut icon" href="{% static "pretixbase/img/favicon-debug.ico" %}">
{% else %}
<link rel="icon" href="{% static "pretixbase/img/favicon.ico" %}">
<link rel="shortcut icon" href="{% static "pretixbase/img/favicon.ico" %}">