From b3c1b00ae871bbc7ad4b5cad1d13cd66b0d7239c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 7 Jul 2025 17:30:10 +0200 Subject: [PATCH] ensure image from gallery is displayed --- hub/services/templates/pages/homepage.html | 4 ++++ hub/services/templates/services/article_detail.html | 8 ++++---- hub/services/templates/services/article_list.html | 4 ++-- hub/services/templates/services/lead_form.html | 2 +- hub/services/templates/services/offering_detail.html | 2 +- hub/services/templates/services/offering_list.html | 4 ++-- hub/services/templates/services/partner_detail.html | 6 +++--- hub/services/templates/services/partner_list.html | 2 ++ hub/services/templates/services/provider_detail.html | 6 +++--- hub/services/templates/services/provider_list.html | 2 +- hub/services/templates/services/service_detail.html | 4 ++-- hub/services/templates/services/service_list.html | 4 ++-- hub/services/templatetags/social_meta_tags.py | 4 ++-- 13 files changed, 29 insertions(+), 23 deletions(-) diff --git a/hub/services/templates/pages/homepage.html b/hub/services/templates/pages/homepage.html index a7507c6..fc38402 100644 --- a/hub/services/templates/pages/homepage.html +++ b/hub/services/templates/pages/homepage.html @@ -109,6 +109,7 @@
+ {% if provider.get_logo %} + {% endif %}

{{ provider.name }} @@ -163,6 +165,7 @@
+ {% if partner.get_logo %} + {% endif %}

{{ partner.name }} diff --git a/hub/services/templates/services/article_detail.html b/hub/services/templates/services/article_detail.html index 2f67b43..3727c08 100644 --- a/hub/services/templates/services/article_detail.html +++ b/hub/services/templates/services/article_detail.html @@ -41,7 +41,7 @@
Service
- {% if article.related_service.logo %} + {% if article.related_service.get_logo %}
{{ article.related_service.name }} logo @@ -58,7 +58,7 @@
Partner
- {% if article.related_consulting_partner.logo %} + {% if article.related_consulting_partner.get_logo %}
{{ article.related_consulting_partner.name }} logo @@ -75,7 +75,7 @@
Provider
- {% if article.related_cloud_provider.logo %} + {% if article.related_cloud_provider.get_logo %}
{{ article.related_cloud_provider.name }} logo @@ -99,7 +99,7 @@ {% for related_article in related_articles %}
- {% if related_article.image %} + {% if related_article.get_image %} {{ related_article.title }} {% endif %}
diff --git a/hub/services/templates/services/article_list.html b/hub/services/templates/services/article_list.html index 47ae5ae..a1b0712 100644 --- a/hub/services/templates/services/article_list.html +++ b/hub/services/templates/services/article_list.html @@ -145,9 +145,9 @@

- {% if offering.cloud_provider.logo %} + {% if offering.cloud_provider.get_logo %} {{ offering.cloud_provider.name }}
- {% if partner.logo %} + {% if partner.get_logo %} {{ partner.name }} logo {% endif %}
@@ -173,9 +173,9 @@ {% for service in services %}
- {% if service.logo %} + {% if service.get_logo %}
- {% if service.logo %} + {% if service.get_logo %}
{{ service.name }} logo diff --git a/hub/services/templates/services/partner_list.html b/hub/services/templates/services/partner_list.html index 5f554ac..f05ca5b 100644 --- a/hub/services/templates/services/partner_list.html +++ b/hub/services/templates/services/partner_list.html @@ -113,6 +113,7 @@

{{ partner.name }} diff --git a/hub/services/templates/services/provider_detail.html b/hub/services/templates/services/provider_detail.html index aa9c360..aa10b7b 100644 --- a/hub/services/templates/services/provider_detail.html +++ b/hub/services/templates/services/provider_detail.html @@ -23,7 +23,7 @@
- {% if provider.logo %} + {% if provider.get_logo %} {{ provider.name }} logo {% endif %}
@@ -173,9 +173,9 @@ {% for offering in ordered_offerings %}
- {% if offering.service.logo or offering.service.is_featured %} + {% if offering.service.get_logo or offering.service.is_featured %}
- {% if offering.service.logo %} + {% if offering.service.get_logo %}
{{ offering.service.name }} logo diff --git a/hub/services/templates/services/provider_list.html b/hub/services/templates/services/provider_list.html index ca27bab..5a743af 100644 --- a/hub/services/templates/services/provider_list.html +++ b/hub/services/templates/services/provider_list.html @@ -98,7 +98,7 @@
- {% if provider.logo %} + {% if provider.get_logo %} {{ provider.name }} diff --git a/hub/services/templates/services/service_detail.html b/hub/services/templates/services/service_detail.html index bdb3748..9628846 100644 --- a/hub/services/templates/services/service_detail.html +++ b/hub/services/templates/services/service_detail.html @@ -22,7 +22,7 @@
- {% if service.logo %} + {% if service.get_logo %} {{ service.name }} logo {% endif %}
@@ -182,7 +182,7 @@ class="text-decoration-none" style="display: block;">
- {% if offering.cloud_provider.logo %} + {% if offering.cloud_provider.get_logo %}
{{ offering.cloud_provider.name }} logo diff --git a/hub/services/templates/services/service_list.html b/hub/services/templates/services/service_list.html index 0420a74..f0a86f0 100644 --- a/hub/services/templates/services/service_list.html +++ b/hub/services/templates/services/service_list.html @@ -152,9 +152,9 @@