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

fix position embeds

parent 32dddf87
No related branches found
No related tags found
2 merge requests!1159Release,!1158fix position embeds
Pipeline #19912 passed
...@@ -381,7 +381,9 @@ class PersonPageMixin(Page): ...@@ -381,7 +381,9 @@ class PersonPageMixin(Page):
return full_name return full_name
@property @property
def position(self) -> None: def position(self):
print(self.person.position)
return self.person.position return self.person.position
@property @property
......
...@@ -53,9 +53,11 @@ ...@@ -53,9 +53,11 @@
<template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')"> <template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')">
{% if block.value.person_list|length %} {% if block.value.person_list|length %}
{% for person_page in block.value.person_list %} {% for person_page in block.value.person_list %}
{% image person_page.specific.get_profile_image fill-480x480 as profile_image %} {% with person_page.specific as person_page %}
{% image person_page.get_profile_image fill-480x480 as profile_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %} {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %}
{% endwith %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment