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

temporary person page attr workaround

parent 9857f588
No related branches found
No related tags found
2 merge requests!1003temporary person page attr workaround,!1002temporary person page attr workaround
Pipeline #18638 passed
......@@ -261,7 +261,15 @@ class PageInMenuMixin(Page):
return menu.value["title"]
elif menu.block_type == "menu_parent":
for item in menu.value["menu_items"]:
if item["link"].strip() == instance.full_url.strip():
if (
item["link"].strip()
if item["link"] is not None
else ""
) == (
instance.full_url.strip()
if instance.full_url
else ""
):
return menu.value["title"]
if item["page"] is None:
......
......@@ -5,7 +5,11 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{% for person_details in self.person_list %}
{% with person_details.person as person_page %}
{% include "shared/person_badge_snippet.html" with title=person_details.position|default:person_page.job %}
{% if person_details.position %}
{% include "shared/person_badge_snippet.html" with title=person_details.position %}
{% else %}
{% include "shared/person_badge_snippet.html" with title=person_page.job %}
{% endif %}
{% endwith %}
{% endfor %}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment