Cookie popup improvements (#3976)
Fixes #3925. - Cookie consent preference is now stored in local storage rather than using cookies - Improves on the existing cookie banner by adding a `Learn More` option where users can read more about the essential & analytic cookies, and toggle analytics specifically. - If analytics are not used, the user is no longer given the option to opt out, as Hypha only uses essential cookies by default. - Added a link/button to the footer default that allows the user to re-open the cookie prompt without having to clear it from their local storage.
Showing
- docs/setup/administrators/cookie-consent.md 44 additions, 0 deletionsdocs/setup/administrators/cookie-consent.md
- hypha/cookieconsent/migrations/0003_alter_cookieconsentsettings_options_and_more.py 65 additions, 0 deletions...ions/0003_alter_cookieconsentsettings_options_and_more.py
- hypha/cookieconsent/models.py 23 additions, 5 deletionshypha/cookieconsent/models.py
- hypha/cookieconsent/static/js/cookieconsent.js 89 additions, 29 deletionshypha/cookieconsent/static/js/cookieconsent.js
- hypha/cookieconsent/templates/includes/banner.html 45 additions, 7 deletionshypha/cookieconsent/templates/includes/banner.html
- hypha/cookieconsent/templatetags/cookieconsent_tags.py 1 addition, 5 deletionshypha/cookieconsent/templatetags/cookieconsent_tags.py
- hypha/core/migrations/0005_alter_systemsettings_footer_content.py 22 additions, 0 deletions...re/migrations/0005_alter_systemsettings_footer_content.py
- hypha/core/models/system_settings.py 1 addition, 1 deletionhypha/core/models/system_settings.py
- hypha/static_src/sass/components/_cookieconsent.scss 91 additions, 2 deletionshypha/static_src/sass/components/_cookieconsent.scss
Loading
Please register or sign in to comment