Commit 4f7740d4 by François C.

Add favicon customization

parent aa2ef67a
Pipeline #2368 failed with stage
in 1 minute 20 seconds
...@@ -23,5 +23,6 @@ def context_setting(request): ...@@ -23,5 +23,6 @@ def context_setting(request):
"""adding settings variable to context (can be overloaded in views).""" """adding settings variable to context (can be overloaded in views)."""
context = {'odoo': settings.ODOO['url'], context = {'odoo': settings.ODOO['url'],
'app_env': getattr(settings, 'APP_ENV', "prod"), 'app_env': getattr(settings, 'APP_ENV', "prod"),
'company_code': getattr(settings, 'COMPANY_CODE', '')} 'company_code': getattr(settings, 'COMPANY_CODE', ''),
'favicon_url': getattr(settings, 'FAVICON_URL', '/static/favicon.ico')}
return context return context
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<link rel="shortcut icon" type="image/png" href="{% static "favicon.ico" %}"/> <link rel="shortcut icon" type="image/png" href="{{favicon_url}}"/>
{% block additionnal_css %}{% endblock %} {% block additionnal_css %}{% endblock %}
<script type="text/javascript"> <script type="text/javascript">
// Prevent back page // Prevent back page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment