Skip to content

Commit

Permalink
Provider details: Check for both registration webpage and inband regi…
Browse files Browse the repository at this point in the history
…stration for rating explanation
  • Loading branch information
cal0pteryx committed Jun 28, 2023
1 parent f0c3a17 commit 1df6758
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion themes/xmpp-providers/layouts/shortcodes/provider-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,21 @@ <h2><span class="badge {{ if eq .category "A" }}category-a{{ else if eq .categor
{{ range $key, $value := $data }}
{{ if eq $key "inBandRegistration" }}
<li>
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 }}
</li>
{{ end }}
{{ if eq $key "ratingXmppComplianceTester" }}
Expand Down

0 comments on commit 1df6758

Please sign in to comment.