-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2446 from DOAJ/feature/3995_senior-ambassador
Add senior ambassadors section to Ambassadors Page
- Loading branch information
Showing
6 changed files
with
169 additions
and
123 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
33 changes: 33 additions & 0 deletions
33
portality/templates-v2/public/includes/_ambassador-profile.html
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,33 @@ | ||
<li class="col-sm-6 col-md-4 col-lg-4"> | ||
<div class="title-list__text"> | ||
<figure class="portrait" aria-hidden="true"> | ||
{% if i.photo %} | ||
<div class="portrait__bg-img" style="background-image: url('/assets/img/ambassadors/{{ i.photo }}')" | ||
alt="Portrait of {{ i.name }}"></div> | ||
{% else %} | ||
<div class="portrait__img--empty"></div> | ||
{% endif %} | ||
</figure> | ||
<p class="label">{{ i.region }}</p> | ||
<h3 class="title-list__heading">{{ i.name }}</h3> | ||
{% if i.bio %} | ||
<p class="title-list__para"> | ||
{% autoescape off %}{{ i.bio }}{% endautoescape %} | ||
</p> | ||
{% endif %} | ||
{% if i.coi %} | ||
<div class="title-list__para"> | ||
<h3 class="label label--tertiary">Conflict of interest statement(s):</h3> | ||
<ul class="tags"> | ||
{% for year, link in i.coi.items() %} | ||
<li> | ||
{% if link %}<a href="{{ link }}" target="_blank" class="tag">{% endif %} | ||
{{ year }} | ||
{% if link %}</a>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</li> |
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,38 +1,19 @@ | ||
<!-- About section: ambassadors --> | ||
<h2>Ambassadors</h2> | ||
<ul class="row title-list"> | ||
{% for i in data.ambassadors %} | ||
<li class="col-sm-6 col-md-4 col-lg-4"> | ||
<div class="title-list__text"> | ||
<figure class="portrait" aria-hidden="true"> | ||
{% if i.photo %} | ||
<div class="portrait__bg-img" style="background-image: url('/assets/img/ambassadors/{{ i.photo }}')" alt="Portrait of {{ i.name }}"></div> | ||
{% else %} | ||
<div class="portrait__img--empty"></div> | ||
{% endif %} | ||
</figure> | ||
<p class="label">{{ i.region }}</p> | ||
<h3 class="title-list__heading">{{ i.name }}</h3> | ||
{% if i.bio %} | ||
<p class="title-list__para"> | ||
{% autoescape off %}{{ i.bio }}{% endautoescape %} | ||
</p> | ||
{% endif %} | ||
{% if i.coi %} | ||
<div class="title-list__para"> | ||
<h3 class="label label--tertiary">Conflict of interest statement(s):</h3> | ||
<ul class="tags"> | ||
{% for year, link in i.coi.items() %} | ||
<li> | ||
{% if link %}<a href="{{ link }}" target="_blank" class="tag">{% endif %} | ||
{{ year }} | ||
{% if link %}</a>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<!-- About section: senior-ambassadors --> | ||
{% if data.ambassadors.senior %} | ||
<h2 id="senior-ambassadors">Senior Ambassadors</h2> | ||
<ul class="row title-list"> | ||
{% for i in data.ambassadors.senior %} | ||
{% include 'public/includes/_ambassador-profile.html' with context %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
{% if data.ambassadors.general %} | ||
<h2 id="ambassadors">Ambassadors</h2> | ||
<ul class="row title-list"> | ||
{% for i in data.ambassadors.general %} | ||
{% include 'public/includes/_ambassador-profile.html' with context %} | ||
{% endfor %} | ||
</ul> | ||
{% 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