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

Add the is_front template flag using path.matcher service #280

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

andybroomfield
Copy link
Contributor

Fix #279

Same method as page manager.
This adds the is_front template flag to localgov alert banner for testing with twig.
Will restore the default homepage class in the default template.

@andybroomfield andybroomfield force-pushed the fix/1.x-279-is-front-template-tag branch from ae55b3a to 1482d51 Compare October 2, 2023 19:15
Copy link
Member

@markconroy markconroy left a comment

Choose a reason for hiding this comment

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

Looks good, let's merge.

@andybroomfield
Copy link
Contributor Author

I think I need to add a test? But then I will merge this.

Fix #279

Same method as page manager.
This adds the is_front template flag to localgov alert banner for testing with twig.
Will restore the default homepage class in the default template.
@andybroomfield andybroomfield force-pushed the fix/1.x-279-is-front-template-tag branch from 1482d51 to 22808fc Compare January 27, 2024 22:41
Checks the extra front page class is displayed on the alert banner
template when on the front page, and not when on other pages.
@andybroomfield andybroomfield marked this pull request as ready for review January 28, 2024 11:29
@andybroomfield
Copy link
Contributor Author

Ready for re-review now the test is added.

Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @andybroomfield

@finnlewis finnlewis merged commit 2a7c282 into 1.x Jan 30, 2024
8 checks passed
@finnlewis finnlewis deleted the fix/1.x-279-is-front-template-tag branch January 30, 2024 12:22
@andybroomfield andybroomfield mentioned this pull request Jan 30, 2024
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.

Homepage classes on alert banner template no longer showing
3 participants