-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EWPP-2016: Improve display of person teaser.
- Loading branch information
1 parent
a8803c1
commit 22991c5
Showing
7 changed files
with
74 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
25 changes: 25 additions & 0 deletions
25
modules/oe_theme_content_person/templates/oe-theme-content-person-job-list.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme template for Person job list extra field. | ||
* | ||
* @see \Drupal\oe_theme_content_person\Plugin\ExtraField\Display\PersonJobListExtraField::viewElements() | ||
*/ | ||
#} | ||
{% if simple %} | ||
<ul class="ecl-unordered-list"> | ||
{% for item in items %} | ||
<li class="ecl-unordered-list__item"> | ||
{{ item.label}} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% else %} | ||
{% for item in items %} | ||
<div class="ecl-u-type-m ecl-u-type-bold ecl-u-mb-xs">{{ item.label }}</div> | ||
{% if item.body %} | ||
<div class="ecl-u-mb-xs">{{ item.body }}</div> | ||
{% endif %} | ||
{% endfor %} | ||
{% 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
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
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