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

TDP: hardcode TdpSearchHeroImage #8277

Merged
merged 2 commits into from
Mar 29, 2024
Merged

TDP: hardcode TdpSearchHeroImage #8277

merged 2 commits into from
Mar 29, 2024

Conversation

anselmbradford
Copy link
Member

TDP has a TdpSearchHeroImage in Wagtail for setting the large and small hero image on https://www.consumerfinance.gov/consumer-tools/educator-tools/youth-financial-education/teach/activities/

In the history of that page, it doesn't appear we've ever changed the image. It seems like it would remove some Wagtail cruft to just hardcode the hero image. It can still be updated by updating the URLs in the template.

Also, the image didn't have an alt value, and this PR adds one.

Removals

  • TDP: hardcode TdpSearchHeroImage

How to test this PR

  1. python cfgov/manage.py migrate and visit http://localhost:8000/consumer-tools/educator-tools/youth-financial-education/teach/activities/ and compare to production and see that the hero image is unchanged.

@anselmbradford anselmbradford force-pushed the ans_hardcode_tdp_hero branch from 9219251 to 660432f Compare March 29, 2024 18:27
Copy link
Member

@wpears wpears left a comment

Choose a reason for hiding this comment

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

Neat

@anselmbradford anselmbradford added this pull request to the merge queue Mar 29, 2024
Merged via the queue into main with commit aac379c Mar 29, 2024
13 checks passed
@anselmbradford anselmbradford deleted the ans_hardcode_tdp_hero branch March 29, 2024 18:59
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.

3 participants