Skip to content

Commit

Permalink
remove unnessary formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kim authored and Chris Kim committed Sep 14, 2023
1 parent f7acfa6 commit e1b58d0
Show file tree
Hide file tree
Showing 6 changed files with 240 additions and 233 deletions.
86 changes: 44 additions & 42 deletions src/site/facilities/facility_health_service.drupal.liquid
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
{% assign serviceTaxonomy = healthService.fieldServiceNameAndDescripti.entity %}
<va-accordion-item
{% if serviceTaxonomy.fieldAlsoKnownAs %}
subheader="{{ serviceTaxonomy.fieldAlsoKnownAs }}"
{% endif %}
class="facilities_health_service va-accordion-item"
data-label="{{ serviceTaxonomy.name }}"
data-childlabel="{{ serviceTaxonomy.fieldAlsoKnownAs }}"
data-template="facilities/facilities_health_service"
id="{{serviceTaxonomy.name | hashReference: 60 }}">
<h3 slot="headline">
{{ serviceTaxonomy.name }}
</h3>
<div id="{{ serviceTaxonomy.entityBundle }}-{{ serviceTaxonomy.entityId }}">
{% if serviceTaxonomy.fieldCommonlyTreatedCondition %}
<div class="vads-u-margin-bottom--2">
<span class="vads-u-font-style--italic">Common conditions:
</span>
{{ serviceTaxonomy.fieldCommonlyTreatedCondition }}
</div>
{% endif %}
{% assign serviceTaxonomy = healthService.fieldServiceNameAndDescripti.entity %}
<va-accordion-item
{% if serviceTaxonomy.fieldAlsoKnownAs %}
subheader="{{ serviceTaxonomy.fieldAlsoKnownAs }}"
{% endif %}
class="facilities_health_service va-accordion-item"
data-label="{{ serviceTaxonomy.name }}"
data-childlabel="{{ serviceTaxonomy.fieldAlsoKnownAs }}"
data-template="facilities/facilities_health_service"
id="{{serviceTaxonomy.name | hashReference: 60 }}"
>
<h3 slot="headline">
{{ serviceTaxonomy.name }}
</h3>
<div
id="{{ serviceTaxonomy.entityBundle }}-{{ serviceTaxonomy.entityId }}"
>
{% if serviceTaxonomy.fieldCommonlyTreatedCondition %}
<div class="vads-u-margin-bottom--2">
<span class="vads-u-font-style--italic">Common conditions: </span>{{ serviceTaxonomy.fieldCommonlyTreatedCondition }}
</div>
{% endif %}

{% if serviceSection.name == "Lovell - TRICARE" and serviceTaxonomy.fieldTricareDescription %}
<div>{{ serviceTaxonomy.fieldTricareDescription }}</div>
{% elsif serviceTaxonomy.description.processed %}
<div>{{ serviceTaxonomy.description.processed }}</div>
{% endif %}
{% if serviceSection.name == "Lovell - TRICARE" and serviceTaxonomy.fieldTricareDescription %}
<div>{{ serviceTaxonomy.fieldTricareDescription }}</div>
{% elsif serviceTaxonomy.description.processed %}
<div>{{ serviceTaxonomy.description.processed }}</div>
{% endif %}

{% if locations.0.entity %}
{% include "src/site/facilities/health_care_local_health_service.drupal.liquid" %}
{% else %}
<div>{{ localServiceDescription }}</div>
{% endif %}
{% if locations.0.entity %}
{% include "src/site/facilities/health_care_local_health_service.drupal.liquid" %}
{% else %}
<div>{{ localServiceDescription }}</div>
{% endif %}

{% if fieldFacilityLocatorApiId contains "vha_" %}
<div
data-widget-type="facility-appointment-wait-times-widget"
data-facility="{{ fieldFacilityLocatorApiId | widgetFacilityDetail | escape }}"
data-service="{{ serviceTaxonomy | healthServiceApiId | escape }}"></div>
{% endif %}
{% if fieldFacilityLocatorApiId contains "vha_" %}
<div
data-widget-type="facility-appointment-wait-times-widget"
data-facility="{{ fieldFacilityLocatorApiId | widgetFacilityDetail | escape }}"
data-service="{{ serviceTaxonomy | healthServiceApiId | escape }}"
></div>
{% endif %}

{% if healthService.fieldBody.processed %}
<div>{{ healthService.fieldBody.processed | replace: 'h3', 'h4' }}</div>
{% endif %}
</div>
</va-accordion-item>
{% if healthService.fieldBody.processed %}
<div>{{ healthService.fieldBody.processed | replace: 'h3', 'h4' }}</div>
{% endif %}
</div>
</va-accordion-item>
Loading

0 comments on commit e1b58d0

Please sign in to comment.