Skip to content
Snippets Groups Projects
Commit dd44db10 authored by Ondrej Rehounek's avatar Ondrej Rehounek
Browse files

district & shared: more ifs for rendering candidate bio

parent 49417d9a
Branches
No related tags found
2 merge requests!636release,!635Bugfix/one more if
Pipeline #9989 passed
...@@ -5,7 +5,15 @@ ...@@ -5,7 +5,15 @@
{% image candidate.photo fill-100x100 %} {% image candidate.photo fill-100x100 %}
</div> </div>
<div class="candidate-table-row__name head-heavy-2xs font-bold">{{ candidate.title }}</div> <div class="candidate-table-row__name head-heavy-2xs font-bold">{{ candidate.title }}</div>
<div class="candidate-table-row__bio font-condensed">{{ candidate.age }} let, {{ candidate.occupation }}, {{ candidate.city }}</div> <div class="candidate-table-row__bio font-condensed">
{% if candidate.age %}
{{ candidate.age }}&nbsp;let{% if candidate.job or candidate.city %},{% endif %}
{% endif %}
{% if candidate.job %}
{{ candidate.job }}{% if candidate.city %},{% endif %}
{% endif %}
{% if candidate.city %}{{ candidate.city }}{% endif %}
</div>
<div class="candidate-table-row__affiliation"> <div class="candidate-table-row__affiliation">
<div class="w-6 mr-2"> <div class="w-6 mr-2">
{% if candidate.is_pirate %} {% if candidate.is_pirate %}
......
...@@ -19,13 +19,14 @@ ...@@ -19,13 +19,14 @@
{{ block.title }} {{ block.title }}
</div> </div>
<div class="candidate-table-row__bio font-condensed"> <div class="candidate-table-row__bio font-condensed">
{% if person_page.age %} <div class="candidate-table-row__bio font-condensed">
{{ person_page.age }}&nbsp;let{% if person_page.job or person_page.city %},{% endif %} {% if block.age %}
{{ block.age }}&nbsp;let{% if block.job or block.city %},{% endif %}
{% endif %} {% endif %}
{% if person_page.job %} {% if block.job %}
{{ person_page.job }}{% if person_page.city %},{% endif %} {{ block.job }}{% if block.city %},{% endif %}
{% endif %} {% endif %}
{% if person_page.city %}{{ person_page.city }}{% endif %} {% if block.city %}{{ block.city }}{% endif %}
</div> </div>
<div class="candidate-table-row__affiliation"> <div class="candidate-table-row__affiliation">
<div class="flex items-center"> <div class="flex items-center">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment