From cff1a9a329204e13ac21f89bd06ae5db3710a00d Mon Sep 17 00:00:00 2001
From: xaralis <filip.varecha@fragaria.cz>
Date: Tue, 21 Jun 2022 09:15:39 +0200
Subject: [PATCH] fix(district): only show parts with useful content in geo
 feature detail

---
 .../district/district_geo_feature_detail_page.html          | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/district/templates/district/district_geo_feature_detail_page.html b/district/templates/district/district_geo_feature_detail_page.html
index 52bd466be..3c347351b 100644
--- a/district/templates/district/district_geo_feature_detail_page.html
+++ b/district/templates/district/district_geo_feature_detail_page.html
@@ -48,10 +48,12 @@
             {% if page.parts_section_title %}<h2 class="head-alt-base mb-4">{{ page.parts_section_title }}</h2>{% endif %}
             <div class="space-y-4">
               {% for part in parts %}
+                {% if part.title and part.description %}
                 <div>
-                  {% if part.selfTitle %}<h3 class="head-allcaps-3xs">{{ part.selfTitle }}</h3>{% endif %}
-                  {% if part.description %}<div class="content-block"><p>{{ part.description }}</p></div>{% endif %}
+                  <h3 class="head-allcaps-3xs">{{ part.title }}</h3>
+                  <div class="content-block"><p>{{ part.description }}</p></div>
                 </div>
+                {% endif %}
               {% endfor %}
             </div>
           </div>
-- 
GitLab