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

district & shared: more ifs for rendering candidate bio

parent 13de17f6
No related branches found
No related tags found
2 merge requests!636release,!635Bugfix/one more if
Pipeline #9883 passed
...@@ -19,9 +19,13 @@ ...@@ -19,9 +19,13 @@
{{ block.title }} {{ block.title }}
</div> </div>
<div class="candidate-table-row__bio font-condensed"> <div class="candidate-table-row__bio font-condensed">
{% if block.age %}{{ block.age }} let,{% endif %} {% if person_page.age %}
{% if block.job %}{{ block.job }},{% endif %} {{ person_page.age }}&nbsp;let{% if person_page.job or person_page.city %},{% endif %}
{% if block.city %}{{ block.city }}{% endif %} {% endif %}
{% if person_page.job %}
{{ person_page.job }}{% if person_page.city %},{% endif %}
{% endif %}
{% if person_page.city %}{{ person_page.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">
......
...@@ -19,8 +19,12 @@ ...@@ -19,8 +19,12 @@
{{ person_page.title }} {{ person_page.title }}
</div> </div>
<div class="candidate-table-row__bio font-condensed"> <div class="candidate-table-row__bio font-condensed">
{% if person_page.age %}{{ person_page.age }} let,{% endif %} {% if person_page.age %}
{% if person_page.job %}{{ person_page.job }},{% endif %} {{ person_page.age }}&nbsp;let{% if person_page.job or person_page.city %},{% endif %}
{% endif %}
{% if person_page.job %}
{{ person_page.job }}{% if person_page.city %},{% endif %}
{% endif %}
{% if person_page.city %}{{ person_page.city }}{% endif %} {% if person_page.city %}{{ person_page.city }}{% endif %}
</div> </div>
<div class="candidate-table-row__affiliation"> <div class="candidate-table-row__affiliation">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment