pelican-papyrus/templates/partials/volunteer.html

98 lines
3.4 KiB
HTML
Raw Normal View History

2024-08-14 20:42:10 +02:00
{% set volunteer = page.resume.volunteer %}
{% if volunteer %}
2024-08-15 04:08:58 +02:00
<section class="section" id="volunteer-section">
2024-08-14 20:42:10 +02:00
<header>
2024-08-15 04:08:58 +02:00
<h2 class='section-title'>{% trans %}resume volunteer title{% endtrans %}</h2>
2024-08-14 20:42:10 +02:00
</header>
<section id="volunteer">
{% for volunteer_item in volunteer %}
<section class="volunteer-item">
{% if volunteer_item.organization %}
{% if volunteer_item.summary %}
{% if loop.first %}
<input id="volunteer-item-{{ loop.index }}" type="checkbox" class="toggle-item" checked="checked" />
{% else %}
<input id="volunteer-item-{{ loop.index }}" type="checkbox" class="toggle-item" />
{% endif %}
<label for="volunteer-item-{{ loop.index }}"></label>
{% endif %}
<header class="clear">
2024-08-15 06:19:22 +02:00
<div class="header-left flex">
2024-08-14 20:42:10 +02:00
{% if volunteer_item.position %}
2024-08-15 06:19:22 +02:00
<div class="position">
{{ volunteer_item.position }}
</div>
2024-08-14 20:42:10 +02:00
{% endif %}
2024-08-15 06:19:22 +02:00
<div class="date flex-grow text-right">
{% if volunteer_item.startDate %}
<span class="startDate">{{ utils.format_date_short(volunteer_item.startDate) }}</span>
{% endif %}
{% if not utils.isinfinite(volunteer_item.endDate) %}
<span class="endDate">- {{ utils.format_date_short(volunteer_item.endDate) }}</span>
{% else %}
<span class="endDate">- {% trans %}resume present phrase{% endtrans %}</span>
{% endif %}
2024-08-14 20:42:10 +02:00
</div>
</div>
2024-08-15 06:19:22 +02:00
<div class="organization">
<i class="fa-solid fa-building-ngo mr-2"></i>
{{ volunteer_item.organization }}
{% if volunteer_item.url %}
<span class="website text-italic">
<i>
<a href="{{ volunteer_item.url }}">(website)</a>
</i>
</span>
2024-08-14 20:42:10 +02:00
{% endif %}
</div>
2024-08-15 06:19:22 +02:00
2024-08-14 20:42:10 +02:00
</header>
{% endif %}
2024-08-15 06:19:22 +02:00
2024-08-14 20:42:10 +02:00
{% if volunteer_item.location %}
2024-08-15 06:19:22 +02:00
<span class="location">
<span class="fas fa-map-marker-alt"></span>
{% if volunteer_item.city %}
<span class="city">
{{ volunteer_item.city }},
</span>
{% endif %}
{% if volunteer_item.countryCode %}
<span class="countryCode">
({{ volunteer_item.countryCode }})
</span>
{% endif %}
{% if volunteer_item.region %}
<span class="region">
{{ volunteer_item.region }}
</span>
{% endif %}
</span>
2024-08-14 20:42:10 +02:00
{% endif %}
{% if volunteer_item.keywords %}
2024-08-15 06:19:22 +02:00
<ul class="keywords">
{% for keyword in volunteer_item.keywords %}
<li>{{ keyword }}</li>
{% endfor %}
</ul>
2024-08-14 20:42:10 +02:00
{% endif %}
<div class="item">
{% if volunteer_item.summary %}
<div class="summary">{{ volunteer_item.summary | replace("\r\n", "<br>") | replace("\n", "<br>") | replace("\r", "<br>") }}</div>
{% endif %}
{% if volunteer_item.highlights %}
2024-08-15 06:19:22 +02:00
<ul class="highlights grid grid-cols-4 gap-4">
2024-08-14 20:42:10 +02:00
{% for highlight in volunteer_item.highlights %}
2024-08-15 06:19:22 +02:00
<li class="bg-slate-700 rounded-md ring-2 ring-blue-500/50 text-center">{{ highlight | replace("\r\n", "<br>") | replace("\n", "<br>") | replace("\r", "<br>") }}</li>
2024-08-14 20:42:10 +02:00
{% endfor %}
</ul>
{% endif %}
</div>
</section>
{% endfor %}
</section>
</section>
{% endif %}