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

Slim down cookie consent template #173

Open
wants to merge 2 commits into
base: slim-down-cookie-consent-template
Choose a base branch
from

Conversation

Jacobomara901
Copy link

This patch refactors the cookie-consent.tpl to reduce the lines of code. The $loggedIn clause now only applies to the manage button of the banner.

Test plan in main commit.

This patch refactors the cookie-consent.tpl file so that there are less
lines of code. The logged in check now only applies to the button
relevant to it instead of duplicating the banner code in two seperate if
clauses.

To test:
1. Enable cookie consent
2. Check that banner still disappears on selecting cookie preferences
3. Check that the bar does not reappear on refresh
4. Log out
5. Bar should appear again
6. Check steps 2-3 again
@Chloe070196
Copy link

Tested functionality: working nicely and as expected

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.

2 participants