From 1df6758c32b1b9e77ce88daf22fdc534d32ca92a Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Wed, 28 Jun 2023 16:23:25 +0200 Subject: [PATCH] Provider details: Check for both registration webpage and inband registration for rating explanation --- .../layouts/shortcodes/provider-details.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/themes/xmpp-providers/layouts/shortcodes/provider-details.html b/themes/xmpp-providers/layouts/shortcodes/provider-details.html index 16f815a..d78e5cd 100644 --- a/themes/xmpp-providers/layouts/shortcodes/provider-details.html +++ b/themes/xmpp-providers/layouts/shortcodes/provider-details.html @@ -409,7 +409,21 @@

- Registration via XMPP apps is not supported (at any time) + {{ $registration_web_page_available := true }} + {{ range $category, $data := $category_criteria }} + {{ if eq $category "B" }} + {{ range $key, $value := $data }} + {{ if eq $key "registrationWebPage" }} + {{ $registration_web_page_available = false }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} + {{ if not $registration_web_page_available }} + Registration is not available + {{ else }} + Registration via XMPP apps is not supported (at any time) + {{ end }} {{ end }} {{ if eq $key "ratingXmppComplianceTester" }}