From c9610a44fe0d278f5dacdadef26a08b0acc6a81c Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet206@gmail.com> Date: Sun, 29 Dec 2024 21:58:32 +0100 Subject: [PATCH] hotfix: wrong indent for contact details partial --- layouts/partials/commons/contact-details.html | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/layouts/partials/commons/contact-details.html b/layouts/partials/commons/contact-details.html index e640d67a..b9f1aff3 100644 --- a/layouts/partials/commons/contact-details.html +++ b/layouts/partials/commons/contact-details.html @@ -21,31 +21,31 @@ "in_itemscope" true ) }} </ul> + {{ end }} - {{ if or .phone_numbers .phone_professional .postal_address }} - <ul> - {{ with .postal_address }} - <li class="address"> - <span class="meta">{{ i18n "commons.contact.address" }}</span> - {{ partial "commons/address.html" . }} + {{ if or .phone_numbers .phone_professional .postal_address }} + <ul> + {{ with .postal_address }} + <li class="address"> + <span class="meta">{{ i18n "commons.contact.address" }}</span> + {{ partial "commons/address.html" . }} + </li> + {{ end }} + {{ with .phone_numbers }} + {{ with or .phone_mobile .phone }} + <li class="phone"> + <span>{{ i18n "commons.contact.phone.label" }}</span> + <a href="{{ chomp .value | safeURL }}" itemprop="telephone" title='{{ safeHTML (i18n "commons.contact.phone.a11y_label" (dict "phone_number" .label )) }}'>{{ .label }}</a> </li> {{ end }} - {{ with .phone_numbers }} - {{ with or .phone_mobile .phone }} - <li class="phone"> - <span>{{ i18n "commons.contact.phone.label" }}</span> - <a href="{{ chomp .value | safeURL }}" itemprop="telephone" title='{{ safeHTML (i18n "commons.contact.phone.a11y_label" (dict "phone_number" .label )) }}'>{{ .label }}</a> - </li> - {{ end }} - {{ with .phone_professional }} - <li class="phone"> - <span>{{ i18n "commons.contact.phone_professional.label" }}</span> - <a href="{{ chomp .value | safeURL }}" itemprop="telephone" title='{{ safeHTML (i18n "commons.contact.phone_professional.a11y_label" (dict "phone_number" .label )) }}'>{{ .label }}</a> - </li> - {{ end }} + {{ with .phone_professional }} + <li class="phone"> + <span>{{ i18n "commons.contact.phone_professional.label" }}</span> + <a href="{{ chomp .value | safeURL }}" itemprop="telephone" title='{{ safeHTML (i18n "commons.contact.phone_professional.a11y_label" (dict "phone_number" .label )) }}'>{{ .label }}</a> + </li> {{ end }} - </ul> - {{ end }} + {{ end }} + </ul> {{ end }} </div> {{ end }} -- GitLab