pelican-papyrus/templates/partials/languages.html

37 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2024-08-14 20:42:10 +02:00
{% set languages = page.resume.languages %}
{% if languages %}
<section class="section" id="languages-section"> <header>
<h2 class='section-title'><i class='fa-solid fa-flag'></i>{% trans %}resume language title{% endtrans %}</h2>
2024-08-14 20:42:10 +02:00
</header>
<section id="languages">
{% for language in languages %}
<div class="display">
{% if language.language %}
<h3 class="language">
{{ language.language }}
</h3>
{% endif %}
<div class="item">
{% if language.fluency %}
2024-08-15 02:13:33 +02:00
<div class="level fluency {{ language.fluency | lower }}">
<em>
{% if language.fluency == "native" %}
{% trans %}language level native{% endtrans %}
{% elif language.fluency == "fluent" %}
{% trans %}language level fluent{% endtrans %}
{% elif language.fluency == "elementary" %}
{% trans %}language level elementary{% endtrans %}
{% elif language.fluency == "notions" %}
{% trans %}language level notions{% endtrans %}
{% endif %}
</em>
<div class="bar"></div>
</div>
2024-08-14 20:42:10 +02:00
{% endif %}
</div>
</div>
{% endfor %}
</section>
</section>
{% endif %}