-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui: display a different logo/color for each orga. #706
ui: display a different logo/color for each orga. #706
Conversation
263a3a5
to
fca1847
Compare
fca1847
to
22b9442
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a naive approach that needs to be changed in a near future.
@@ -63,5 +63,6 @@ | |||
{%- block header %}{% endblock header %} | |||
{%- block css %} | |||
{% assets "rero_ils_main_css" %}<link href="{{ ASSET_URL }}" rel="stylesheet">{% endassets %} | |||
<link href="{{ config.get('RERO_ILS_THEME_ORGANISATION_CSS_ENDPOINT') }}{{ viewcode }}.css" rel="stylesheet" title="{{ viewcode }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check that this works in production (non debug mode). Probably it will failed due to APP_DEFAULT_SECURE_HEADERS policies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right this approach is the simplest I found regarding given constraint: change the CSS even if the server is launched. So yes I know that's a naive one. And that in the future it will evolve.
It avoids problems with static files that are (re)generated at each deployment, that the production don't keep them in kubernetes and so on.
I also think about APP_DEFAULT_SECURE_HEADERS
policy, and found nothing about CSS and images.
Seems to be OK with ENV=production
in invenio.cfg file.
22b9442
to
f1eab00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Chrome and working fine. I saw the issue with the logo on Firefox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AoNoOokami I fixed the problem on Firefox, but CSS files needs to be updated on https://ressources.rero.ch/, you can use https://o9.re/ils/css/
instead.
f1eab00
to
ae8fe5b
Compare
* Adds RERO_ILS_THEME_ORGANISATION_CSS_ENDPOINT configuration variable to gives a way for each organisation to have a specific stylesheet Co-Authored-by: Olivier DOSSMANN <[email protected]>
ae8fe5b
to
b02bfe3
Compare
way for each organisation to have a specific stylesheet
Co-Authored-by: Olivier DOSSMANN [email protected]
Why are you opening this PR?
How to test?
Code review check list