Skip to content
Snippets Groups Projects
Commit 72521511 authored by Tomi Valentová's avatar Tomi Valentová
Browse files

fix names

parent c593f292
Branches
No related tags found
2 merge requests!1103Release,!1102fix names
Pipeline #19368 passed
......@@ -2017,6 +2017,8 @@ class MainPersonPageMixin(
return self.root_page.fallback_image
def get_full_name(self) -> str:
print("getting full name")
full_name = ""
if self.before_name:
......
......@@ -5,18 +5,20 @@
id="kandidati"
>
{% for candidate in self.candidates %}
{% with candidate.page.specific as specific_page %}
{% if candidate.image %}
{% image candidate.image max-756x756 as resized_candidate_image %}
{% else %}
{% image candidate.page.image max-756x756 as resized_candidate_image %}
{% image specific_page.image max-756x756 as resized_candidate_image %}
{% endif %}
{% firstof candidate.description candidate.page.perex as description %}
{% firstof candidate.description specific_page.perex as description %}
{% if show_job %}
{% include "styleguide2/includes/molecules/candidates/candidate_primary_box.html" with name=candidate.page.get_full_name position=candidate.page.job description=description url=candidate.page.url candidate_image=resized_candidate_image %}
{% include "styleguide2/includes/molecules/candidates/candidate_primary_box.html" with name=specific_page.get_full_name position=specific_page.job description=description url=specific_page.url candidate_image=resized_candidate_image %}
{% else %}
{% include "styleguide2/includes/molecules/candidates/candidate_primary_box.html" with name=candidate.page.get_full_name position=candidate.page.position description=description url=candidate.page.url candidate_image=resized_candidate_image %}
{% include "styleguide2/includes/molecules/candidates/candidate_primary_box.html" with name=specific_page.get_full_name position=specific_page.position description=description url=specific_page.url candidate_image=resized_candidate_image %}
{% endif %}
{% endwith %}
{% endfor %}
</ul>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment