Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
4f7740d4
Commit
4f7740d4
authored
Sep 12, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add favicon customization
parent
aa2ef67a
Pipeline
#2368
failed with stage
in 1 minute 20 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
context_processors.py
outils/context_processors.py
+3
-1
base.html
templates/base.html
+1
-1
No files found.
outils/context_processors.py
View file @
4f7740d4
...
...
@@ -23,5 +23,6 @@ def context_setting(request):
"""adding settings variable to context (can be overloaded in views)."""
context
=
{
'odoo'
:
settings
.
ODOO
[
'url'
],
'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
\ No newline at end of file
templates/base.html
View file @
4f7740d4
...
...
@@ -14,7 +14,7 @@
{% endfor %}
{% 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 %}
<script
type=
"text/javascript"
>
// Prevent back page
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment