forgejo/templates/user/auth/consent.tmpl
Minecon724 7f6b6fc461
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
Privacy policy support
Signed-off-by: Minecon724 <minecon724@noreply.git.m724.eu>
2025-03-21 07:53:55 +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 }}