From 392227c49850d3fa8b78adbf0a6a67af897c8c0d Mon Sep 17 00:00:00 2001 From: Nils Steinger <git@n-st.de> Date: Sun, 8 Nov 2020 15:39:03 +0100 Subject: [PATCH] Switch favicon based on production/dev environment --- AKPlan/templates/AKPlan/plan_wall.html | 2 +- templates/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AKPlan/templates/AKPlan/plan_wall.html b/AKPlan/templates/AKPlan/plan_wall.html index 3769984..97f266a 100644 --- a/AKPlan/templates/AKPlan/plan_wall.html +++ b/AKPlan/templates/AKPlan/plan_wall.html @@ -17,7 +17,7 @@ {% bootstrap_javascript jquery='slim' %} {% fontawesome_5_static %} - <link rel="icon" type="image/svg+xml" href="{% static 'common/images/logo.svg' %}"> + <link rel="icon" type="image/svg+xml" href="{% if debug %}{% static 'common/images/logo-dev.svg' %}{% else %}{% static 'common/images/logo.svg' %}{% endif %}"> <link rel="stylesheet" href="{% static 'common/css/custom.css' %}"> {% get_current_language as LANGUAGE_CODE %} diff --git a/templates/base.html b/templates/base.html index e053eb5..eca627c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,7 +17,7 @@ {% bootstrap_javascript jquery='slim' %} {% fontawesome_5_static %} - <link rel="icon" type="image/svg+xml" href="{% static 'common/images/logo.svg' %}"> + <link rel="icon" type="image/svg+xml" href="{% if debug %}{% static 'common/images/logo-dev.svg' %}{% else %}{% static 'common/images/logo.svg' %}{% endif %}"> <link rel="stylesheet" href="{% static 'common/css/custom.css' %}"> <script type='text/javascript'> -- GitLab