Skip to content

Commit

Permalink
show other favicon in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Nov 25, 2024
1 parent 27625c4 commit 4e609e6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ephios/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ def ephios_base_context(request):
"LANGUAGE_CODE": get_language(),
"ephios_version": settings.EPHIOS_VERSION,
"PWA_APP_ICONS": settings.PWA_APP_ICONS,
"DEBUG": settings.DEBUG,
"organization_name": global_preferences_registry.manager()["general__organization_name"],
}
2 changes: 1 addition & 1 deletion ephios/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def GET_USERCONTENT_QUOTA():
"purpose": "maskable",
},
{
"src": "/static/ephios/img/ephios-symbol-red.svg",
"src": f"/static/ephios/img/ephios-symbol-{'yellow' if DEBUG else 'red'}.svg",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "any",
Expand Down
1 change: 1 addition & 0 deletions ephios/static/ephios/img/ephios-symbol-yellow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion ephios/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<meta name="created" content="{% now "c" %}">
<title>ephios - {% block title %} ephios {% endblock %}</title>
<link rel="shortcut icon" type="image/x-icon" href="{% static "ephios/img/ephios-symbol-red.svg" %}">

<link rel="manifest" href="/manifest.json">

<!-- Add to homescreen for Chrome on Android -->
Expand Down

0 comments on commit 4e609e6

Please sign in to comment.