Skip to content
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

[IMP] runbot: show state in favicon #994

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

Williambraecky
Copy link
Contributor

Until now the favicon was handled by the /favicon.ico route made available by website.

This commit adds the different favicons and logic to be able to display the state of the current page through it.

Comment on lines 23 to 24
<link rel="icon" type="image/png" href="runbot/static/src/img/icon_ok.png"/>
<link rel="icon" type="image/svg+xml" href="/runbot/static/src/img/icon_ok.svg"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added all icons as png and svg as not all browsers support svg favicons https://caniuse.com/link-icon-svg
Browser should be smart enough to know it can't load it :)

@Williambraecky Williambraecky marked this pull request as ready for review November 26, 2024 13:41
Until now the favicon was handled by the `/favicon.ico` route made
available by `website`.

This commit adds the different favicons and logic to be able to display
the state of the current page through it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant