[ui] volunteer part improved

This commit is contained in:
max/sooulix 2024-08-15 06:19:22 +02:00
parent 8ca8ddbb2c
commit 4bf887c46e
8 changed files with 68 additions and 63 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-08-15 05:37+0200\n" "POT-Creation-Date: 2024-08-15 05:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -100,6 +100,10 @@ msgstr ""
msgid "resume volunteer title" msgid "resume volunteer title"
msgstr "" msgstr ""
#: templates/partials/volunteer.html:39 templates/partials/work.html:34
msgid "resume present phrase"
msgstr ""
#: templates/partials/work.html:5 #: templates/partials/work.html:5
msgid "resume work title" msgid "resume work title"
msgstr "" msgstr ""

View File

@ -16,12 +16,6 @@
{% if basics.location %} {% if basics.location %}
<span class="location"> <span class="location">
{% if basics.location.address %}
<span class="address">{{ basics.location.address }},</span>
{% endif %}
{% if basics.location.postalCode %}
<span class="postalCode">{{ basics.location.postalCode }},</span>
{% endif %}
{% if basics.location.city %} {% if basics.location.city %}
<span class="city">{{ basics.location.city }},</span> <span class="city">{{ basics.location.city }},</span>
{% endif %} {% endif %}

View File

@ -19,74 +19,73 @@
{% endif %} {% endif %}
<header class="clear"> <header class="clear">
<div class="header-left"> <div class="header-left flex">
{% if volunteer_item.position %} {% if volunteer_item.position %}
<div class="position"> <div class="position">
{{ volunteer_item.position }} {{ volunteer_item.position }}
</div> </div>
{% endif %} {% endif %}
<div class="organization"> <div class="date flex-grow text-right">
{{ volunteer_item.organization }} {% 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 %}
</div> </div>
</div> </div>
<div class="date"> <div class="organization">
{% if volunteer_item.startDate %} <i class="fa-solid fa-building-ngo mr-2"></i>
<span class="startDate"> {{ volunteer_item.organization }}
{{ volunteer_item.startDate }} {% if volunteer_item.url %}
</span> <span class="website text-italic">
{% endif %} <i>
{% if volunteer_item.endDate %} <a href="{{ volunteer_item.url }}">(website)</a>
<span class="endDate"> </i>
- {{ volunteer_item.endDate }} </span>
</span>
{% else %}
<span class="endDate">
- {{ language.phrases.present }}
</span>
{% endif %} {% endif %}
</div> </div>
</header> </header>
{% endif %} {% endif %}
{% if volunteer_item.url %}
<div class="website">
<a href="{{ volunteer_item.url }}">{{ volunteer_item.url }}</a>
</div>
{% endif %}
{% if volunteer_item.location %} {% if volunteer_item.location %}
<span class="location"> <span class="location">
<span class="fas fa-map-marker-alt"></span> <span class="fas fa-map-marker-alt"></span>
{% if volunteer_item.city %} {% if volunteer_item.city %}
<span class="city"> <span class="city">
{{ volunteer_item.city }}, {{ volunteer_item.city }},
</span> </span>
{% endif %} {% endif %}
{% if volunteer_item.countryCode %} {% if volunteer_item.countryCode %}
<span class="countryCode"> <span class="countryCode">
({{ volunteer_item.countryCode }}) ({{ volunteer_item.countryCode }})
</span> </span>
{% endif %} {% endif %}
{% if volunteer_item.region %} {% if volunteer_item.region %}
<span class="region"> <span class="region">
{{ volunteer_item.region }} {{ volunteer_item.region }}
</span> </span>
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}
{% if volunteer_item.keywords %} {% if volunteer_item.keywords %}
<ul class="keywords"> <ul class="keywords">
{% for keyword in volunteer_item.keywords %} {% for keyword in volunteer_item.keywords %}
<li>{{ keyword }}</li> <li>{{ keyword }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<div class="item"> <div class="item">
{% if volunteer_item.summary %} {% if volunteer_item.summary %}
<div class="summary">{{ volunteer_item.summary | replace("\r\n", "<br>") | replace("\n", "<br>") | replace("\r", "<br>") }}</div> <div class="summary">{{ volunteer_item.summary | replace("\r\n", "<br>") | replace("\n", "<br>") | replace("\r", "<br>") }}</div>
{% endif %} {% endif %}
{% if volunteer_item.highlights %} {% if volunteer_item.highlights %}
<ul class="highlights"> <ul class="highlights grid grid-cols-4 gap-4">
{% for highlight in volunteer_item.highlights %} {% for highlight in volunteer_item.highlights %}
<li>{{ highlight | replace("\r\n", "<br>") | replace("\n", "<br>") | replace("\r", "<br>") }}</li> <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>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}

View File

@ -26,18 +26,18 @@
{% endif %} {% endif %}
<div class="date flex-grow text-right"> <div class="date flex-grow text-right">
{% if work_item.startDate %} {% if work_item.startDate %}
<span class="startDate">{{ utils.format_date_short(work_item.startDate) }}</span> <span class="startDate">{{ utils.format_date_short(work_item.startDate) }}</span>
{% endif %} {% endif %}
{% if not utils.isinfinite(work_item.endDate) %} {% if not utils.isinfinite(work_item.endDate) %}
<span class="endDate">- {{ utils.format_date_short(work_item.endDate) }}</span> <span class="endDate">- {{ utils.format_date_short(work_item.endDate) }}</span>
{% else %} {% else %}
<span class="endDate">- {{ language.phrases.present }}</span> <span class="endDate">- {% trans %}resume present phrase{% endtrans %}</span>
{% endif %} {% endif %}
</div> </div>
</div> </div>
<div class="company"> <div class="company">
<i class="fa-solid fa-building"></i> <i class="fa-solid fa-building mr-2"></i>
{{ work_item.name }} {{ work_item.name }}
{% if work_item.url %} {% if work_item.url %}
<span class="website"> <span class="website">

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-08-15 05:37+0200\n" "POT-Creation-Date: 2024-08-15 05:58+0200\n"
"PO-Revision-Date: 2024-08-14 18:17+0200\n" "PO-Revision-Date: 2024-08-14 18:17+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n" "Language: en\n"
@ -101,6 +101,10 @@ msgstr "Beginner"
msgid "resume volunteer title" msgid "resume volunteer title"
msgstr "Volunteer" msgstr "Volunteer"
#: templates/partials/volunteer.html:39 templates/partials/work.html:34
msgid "resume present phrase"
msgstr "Now"
#: templates/partials/work.html:5 #: templates/partials/work.html:5
msgid "resume work title" msgid "resume work title"
msgstr "Professional experience" msgstr "Professional experience"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-08-15 05:37+0200\n" "POT-Creation-Date: 2024-08-15 05:58+0200\n"
"PO-Revision-Date: 2024-08-14 18:17+0200\n" "PO-Revision-Date: 2024-08-14 18:17+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: fr\n" "Language: fr\n"
@ -101,6 +101,10 @@ msgstr "Débutant"
msgid "resume volunteer title" msgid "resume volunteer title"
msgstr "Bénévolat" msgstr "Bénévolat"
#: templates/partials/volunteer.html:39 templates/partials/work.html:34
msgid "resume present phrase"
msgstr "Présent"
#: templates/partials/work.html:5 #: templates/partials/work.html:5
msgid "resume work title" msgid "resume work title"
msgstr "Expérience Professionnelle" msgstr "Expérience Professionnelle"