Skip to content

Commit

Permalink
Refactor provider details for email address and CAPTCHA (#97)
Browse files Browse the repository at this point in the history
* provider-details: Do not show email address and CAPTCHA info if registration via XMPP is disabled

* provider-details: Clarify that email address and CAPTCHA are only un/necessary for registration via XMPP
  • Loading branch information
melvo authored Aug 26, 2024
1 parent fce242d commit fe3e353
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions themes/xmpp-providers/layouts/shortcodes/provider-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,30 +278,32 @@ <h4>Account</h4>
{{ end }}
</td>
</tr>
<tr>
<td class="text-center">
<i class="fa-solid fa-envelope-circle-check px-2 text-body-secondary"></i>
</td>
<td>
{{ if .inBandRegistrationEmailAddressRequired }}
An email address is required for registration
{{ else }}
An email address is <i>not</i> required for registration
{{ end }}
</td>
</tr>
<tr>
<td class="text-center">
<i class="fa-solid fa-robot px-2 text-body-secondary"></i>
</td>
<td>
{{ if .inBandRegistrationCaptchaRequired }}
A <a class="abbr" href="https://en.wikipedia.org/wiki/CAPTCHA" target="_blank">CAPTCHA <i class="fas fa-xs fa-external-link-alt"></i></a> must be solved for registration
{{ else }}
No <a class="abbr" href="https://en.wikipedia.org/wiki/CAPTCHA" target="_blank">CAPTCHA <i class="fas fa-xs fa-external-link-alt"></i></a> must be solved for registration
{{ end }}
</td>
</tr>
{{ if .inBandRegistration }}
<tr>
<td class="text-center">
<i class="fa-solid fa-envelope-circle-check px-2 text-body-secondary"></i>
</td>
<td>
{{ if .inBandRegistrationEmailAddressRequired }}
An email address is required for registration via XMPP apps
{{ else }}
An email address is <i>not</i> required for registration via XMPP apps
{{ end }}
</td>
</tr>
<tr>
<td class="text-center">
<i class="fa-solid fa-robot px-2 text-body-secondary"></i>
</td>
<td>
{{ if .inBandRegistrationCaptchaRequired }}
A <a class="abbr" href="https://en.wikipedia.org/wiki/CAPTCHA" target="_blank">CAPTCHA <i class="fas fa-xs fa-external-link-alt"></i></a> must be solved for registration via XMPP apps
{{ else }}
No <a class="abbr" href="https://en.wikipedia.org/wiki/CAPTCHA" target="_blank">CAPTCHA <i class="fas fa-xs fa-external-link-alt"></i></a> must be solved for registration via XMPP apps
{{ end }}
</td>
</tr>
{{ end }}
<tr>
<td class="text-center">
<i class="fa-solid fa-key px-2 text-body-secondary"></i>
Expand Down

0 comments on commit fe3e353

Please sign in to comment.