From 8e36aaa5b75d019fa87b8571fb85e255c99a98c6 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Mon, 9 Dec 2024 17:07:57 +0200 Subject: [PATCH] Prefix all occurences of {{ member.profile_pic_url }} with {{ STATIC_HOST }} and fix hard-coded S3 --- pmg/templates/admin/inline_membership.html | 2 +- pmg/templates/macros/members.html | 2 +- pmg/templates/member_detail.html | 2 +- pmg/templates/member_list.html | 4 ++-- pmg/templates/provincial/detail.html | 2 +- pmg/templates/provincial/western_cape.html | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pmg/templates/admin/inline_membership.html b/pmg/templates/admin/inline_membership.html index 521c22fb..8236560b 100644 --- a/pmg/templates/admin/inline_membership.html +++ b/pmg/templates/admin/inline_membership.html @@ -8,7 +8,7 @@
{% if model and model.member.profile_pic_url %} - + {% endif %}
diff --git a/pmg/templates/macros/members.html b/pmg/templates/macros/members.html index 5d7e1fd2..2d59fe09 100644 --- a/pmg/templates/macros/members.html +++ b/pmg/templates/macros/members.html @@ -1,6 +1,6 @@ {% macro member_badge(member, chairperson=False) -%} {%- if member.profile_pic_url %} - Profile picture: {{ member.name }} + Profile picture: {{ member.name }} {% else %}

No image available

{% endif %} diff --git a/pmg/templates/member_detail.html b/pmg/templates/member_detail.html index 978ee930..2fcc7cf8 100644 --- a/pmg/templates/member_detail.html +++ b/pmg/templates/member_detail.html @@ -13,7 +13,7 @@

{{ member.name }}

- {{ member.name }} + {{ member.name }}