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

VOTE-2040: Legacy site alert block content #746

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions web/themes/custom/votegov/templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,7 @@

{# If the current page has been marked as outdated and it's the front page #}
{% if is_front and node.content_translation_outdated.value == 1 %}
{# Display a translation alert with a link to the legacy homepage #}
{% set alert_translation %}
<p>Welcome to the new vote.gov! We're continuing to add more languages to the site.
<a href="/{{ language }}/legacy">Find information about registering to vote in {{ languagename }}.</a></p>
{% endset %}
{% include '@uswds_templates/usa-site-alert.html.twig' with {
'alert_type': 'info',
'text': alert_translation
} %}
{{ drupal_entity('block_content', '20') }}
{% endif %}

{# Sitewide alert component #}
Expand Down