forgejo/templates/user/auth/consent.tmpl
Minecon724 43b4a57be3
Privacy policy support
Signed-off-by: Minecon724 <minecon724@noreply.git.m724.eu>
2025-03-27 16:44:38 +01:00

10 lines
354 B
Go HTML Template

{{ if (.PrivacyPolicyURL) }}
<div class="inline field required">
<div class="ui checkbox">
<input id="consent" name="consent" type="checkbox">
<label for="consent">{{ ctx.Locale.Tr "consent_agree" .PrivacyPolicyURL }}</label>
</div>
</div>
{{ else }}
<input id="consent" name="consent" type="checkbox" checked hidden>
{{ end }}