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

VACMS 18724 - Adds mission explainer to Vet Centers #2307

Merged
merged 3 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions src/site/layouts/vet_center.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@
alt="Small group of diverse Veterans talking and smiling with a Vet center counselor, American flag in the background."
width="1000" height="287" class="vads-u-padding-y--1p5"
/>

{% if fieldIntroText != empty %}
<div class="va-introtext">
<p>{{ fieldIntroText }}</p>
</div>
{% endif %}

{% if fieldMissionExplainer.fetched %}
<va-summary-box class="vads-u-margin-bottom--4 medium-screen:vads-u-margin-bottom--0">
<h2 slot="headline">{{ fieldMissionExplainer.fetched.fieldMagicheadHeading.0.value }}</h2>
{{ fieldMissionExplainer.fetched.fieldMagicheadBody.0.value }}
</va-summary-box>
{% endif %}

<va-on-this-page></va-on-this-page>

<h2 id="locations-and-contact-information" class="vads-u-line-height--1 vads-u-margin-bottom--3 vads-u-font-size--lg
Expand Down
3 changes: 3 additions & 0 deletions src/site/stages/build/drupal/graphql/vetCenter.graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ const vetCenterFragment = `
}
}
}
fieldMissionExplainer {
fetched
}
}`;

const getVetCenterSlice = (operationName, offset, limit) => {
Expand Down
Loading