-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track if users has dismissed a version warning banner for a given ver…
…sion. (#1763) See #1384 See #1384 If a user dismiss the banner it should apply to all pages. One remaining questions is : - does it apply to all versions ? This implement a dismiss button and store in local storage which version and when the user has dismissed it. This is enough informations to refine the logic later with what/when we want to show. This also has a rough implementation of not showing banner for current dismissed version for the next 14 days following any banner dismissal. Co-authored-by: Daniel McCloy <[email protected]>
- Loading branch information
Showing
3 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/announcement.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters