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

fix profile images

parent eced4a34
No related branches found
No related tags found
2 merge requests!1065Release,!1064fix profile images
Pipeline #19096 passed
......@@ -54,15 +54,17 @@
<div class="grid grid-cols-1 xl:grid-cols-2 gap-4 mb-16">
{% for contact_person in page.contact_people %}
{% with contact_person.specific.get_profile_image as profile_image %}
{% if profile_image %}
{% image profile_image fill-256x256 as contact_box_image %}
{% endif %}
{% firstof contact_person.value.position conact_person.value.person.position as contact_position %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=contact_box_image name=contact_person.value.person.title function=contact_position telephone=contact_person.value.person.phone mail=contact_person.value.person.email url=contact_person.value.person.url %}
{% with contact_person.value.person.specific.get_profile_image as profile_image %}
{% if profile_image %}
{% image profile_image fill-256x256 as contact_box_image %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=contact_box_image name=contact_person.value.person.title function=contact_position telephone=contact_person.value.person.phone mail=contact_person.value.person.email url=contact_person.value.person.url %}
{% else %}
{% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with name=contact_person.value.person.title function=contact_position telephone=contact_person.value.person.phone mail=contact_person.value.person.email url=contact_person.value.person.url %}
{% endif %}
{% endwith %}
{% endfor %}
</div>
{% endif %}
......
......@@ -17,9 +17,10 @@
"
>
{% with self.page.specific.get_profile_image as profile_image %}
{% if profile_image %}
{% image profile_image fill-150x150 class="object-cover w-12 shrink-0 grow-1" %}
{% endif %}
{% if profile_image %}
{% image profile_image fill-150x150 class="object-cover w-12 shrink-0 grow-1" %}
{% endif %}
{% endwith %}
</div>
<div
......
......@@ -21,9 +21,10 @@
{% with self.page.specific.get_profile_image as profile_image %}
{% if profile_image %}
{% image profile_image fill-150x150 class="w-10 h-10 opacity-75 m-0 p-0 rounded-full" %}
{% endif %}
{% if profile_image %}
{% image profile_image fill-150x150 class="w-10 h-10 opacity-75 m-0 p-0 rounded-full" %}
{% endif %}
{% endwith %}
<strong>
<a href="{{ guarantor_page.url }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment