pelican-papyrus/templates/partials/education.html

91 lines
3.0 KiB
HTML
Raw Normal View History

2024-08-14 20:42:10 +02:00
{% set education = page.resume.education %}
{% if education %}
<section class="section" id="education-section">
2024-08-14 20:42:10 +02:00
<header>
<h2 class='section-title'><i class="fa-solid fa-graduation-cap"></i>{% trans %}resume education title{% endtrans %} <span class="item-count">({{ education | length }})</span></h2>
2024-08-14 20:42:10 +02:00
</header>
<section id="education">
{% for education_item in education %}
<section class="education-item">
{% if education_item.summary %}
{% if loop.first %}
<input id="education-item-{{ loop.index }}" type="checkbox" class="toggle-item" checked="checked" />
{% else %}
<input id="education-item-{{ loop.index }}" type="checkbox" class="toggle-item" />
{% endif %}
<label for="education-item-{{ loop.index }}"></label>
{% endif %}
<header class="clear">
<div class="header-left">
{% if education_item.studyType %}
<div class="studyType">
{{ education_item.studyType }}
</div>
{% endif %}
2024-08-15 04:43:59 +02:00
</div>
<div class="date">
{% if education_item.endDate %}
<span class="pr-1 text-stone-500">
{% trans %}education validation year{% endtrans %}
</span>
<span class="endDate text-neutral-300">
{{ utils.format_date_year(education_item.endDate) }}
</span>
{% endif %}
</div>
<div class="location organization">
2024-08-14 20:42:10 +02:00
{% if education_item.area %}
<div class="area">
{{ education_item.area }}
</div>
{% endif %}
{% if education_item.institution %}
2024-08-15 04:43:59 +02:00
<i class="fas fa-school mr-1 text-stone-500"></i>
2024-08-14 20:42:10 +02:00
<div class="institution">
{{ education_item.institution }}
</div>
{% endif %}
</div>
2024-08-15 04:43:59 +02:00
2024-08-14 20:42:10 +02:00
</header>
{% if education_item.location %}
<span class="location">
<span class="fas fa-map-marker-alt"></span>
{% if education_item.city %}
<span class="city">{{ education_item.city }}, </span>
{% endif %}
{% if education_item.countryCode %}
<span class="countryCode">({{ education_item.countryCode }})</span>
{% endif %}
{% if education_item.region %}
<span class="region">{{ education_item.region }}</span>
{% endif %}
</span>
{% endif %}
{% if education_item.courses %}
<ul class="courses">
{% for course in education_item.courses %}
<li>{{ course }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="item">
{% if education_item.score %}
<div class='gpa'>
<strong> Grade:</strong> <span>{{ education_item.score }}</span>
</div>
{% endif %}
{% if education_item.summary %}
<div class="summary">{{ education_item.summary | replace("\r\n", "<br>") | replace("\n", "<br>") | replace("\r", "<br>") }}</div>
{% endif %}
</div>
</section>
{% endfor %}
</section>
</section>
{% endif %}