-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UHF-10773: Make the popular services templates reusable for Helsinki …
…near you page purposes
- Loading branch information
1 parent
d35f85e
commit a37e42d
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
templates/field/field--paragraph--field-service-links--popular-service-item.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% if items is not empty %} | ||
<ul class="popular-service-item__links"> | ||
{% for item in items %} | ||
<li class="popular-service-item__link-wrapper">{{ item.content }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% embed "@hdbt/misc/popular-service-links.twig" with { items: items } %} | ||
{% block link %} | ||
{{ item.content }} | ||
{% endblock %} | ||
{% endembed %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="popular-service-item"> | ||
<h3 class="popular-service-item__title">{{ title }}</h3> | ||
{% block links %} | ||
{{ content }} | ||
{% endblock %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% if items is not empty %} | ||
<ul class="popular-service-item__links"> | ||
{% for item in items %} | ||
<li class="popular-service-item__link-wrapper"> | ||
{% block link %} | ||
{{ link }} | ||
{% endblock %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} |
9 changes: 5 additions & 4 deletions
9
templates/paragraphs/paragraph--popular-service-item.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<div class="popular-service-item"> | ||
<h3 class="popular-service-item__title">{{ content.field_service_title }}</h3> | ||
{{ content.field_service_links }} | ||
</div> | ||
{% embed "@hdbt/misc/popular-service-item.twig" with { title: content.field_service_title } %} | ||
{% block links %} | ||
{{ content.field_service_links }} | ||
{% endblock links %} | ||
{% endembed %} |