From 43915d441c43ee292f9d5ea2b115f3b68bdc90de Mon Sep 17 00:00:00 2001 From: "jindra12.underdark" <jindra12.underdark@gmail.com> Date: Thu, 14 Dec 2023 00:07:39 +0100 Subject: [PATCH] Fix people group block + also fix minor condition in uniweb person page #232 --- uniweb/templates/uniweb/blocks/people_group_block.html | 2 +- uniweb/templates/uniweb/uniweb_person_page.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uniweb/templates/uniweb/blocks/people_group_block.html b/uniweb/templates/uniweb/blocks/people_group_block.html index 752458f0..8630f953 100644 --- a/uniweb/templates/uniweb/blocks/people_group_block.html +++ b/uniweb/templates/uniweb/blocks/people_group_block.html @@ -2,7 +2,7 @@ <h2 class="head-heavy-base mb-4"> {{ self.group_title }} </h2> - <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 row-gap-8 col-gap-8"> + <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_function %} diff --git a/uniweb/templates/uniweb/uniweb_person_page.html b/uniweb/templates/uniweb/uniweb_person_page.html index 0f68860b..c2bfe4b0 100644 --- a/uniweb/templates/uniweb/uniweb_person_page.html +++ b/uniweb/templates/uniweb/uniweb_person_page.html @@ -112,7 +112,7 @@ </div> {% endif %} - {% if page.phone or page.email and page.show_email %} + {% if page.phone or page.city or page.email and page.show_email %} <hr> <div class="content-block"> <div class="space-y-4"> -- GitLab