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

Refactor: home button #1522

Merged
merged 5 commits into from Jul 13, 2023
Merged

Refactor: home button #1522

merged 5 commits into from Jul 13, 2023

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Jul 12, 2023

Part of #1520

The eligibility:unverified view uses the home button construct. This also shows up in the core:help view as well as in most error pages in core.

This PR moves the content to an include, with some added context for the user's current session.origin via a new context_processor.

The include is used explicitly where it is needed in templates, removing the need for the Button.home() viewmodel helper.

@github-actions github-actions bot added front-end HTML/CSS/JavaScript and Django templates back-end Django views, sessions, middleware, models, migrations etc. labels Jul 12, 2023
@thekaveman thekaveman force-pushed the refactor/eligibility-index branch 2 times, most recently from 8f3f977 to 479ed3e Compare July 12, 2023 04:43
@thekaveman thekaveman self-assigned this Jul 12, 2023
@thekaveman thekaveman added this to the Veterans milestone Jul 12, 2023
@thekaveman thekaveman mentioned this pull request Jul 12, 2023
20 tasks
Base automatically changed from refactor/eligibility-index to dev July 13, 2023 17:05
@thekaveman thekaveman marked this pull request as ready for review July 13, 2023 17:06
@thekaveman thekaveman requested a review from a team as a code owner July 13, 2023 17:06
Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

This looks great!

@thekaveman thekaveman merged commit 3b7daff into dev Jul 13, 2023
10 checks passed
@thekaveman thekaveman deleted the refactor/home-button branch July 13, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. front-end HTML/CSS/JavaScript and Django templates
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants