Improve accept button in privacy policy

This commit is contained in:
BBaoVanC 2021-09-18 17:04:14 -05:00
parent a18b15c56b
commit 6a0ca701cc
1 changed files with 17 additions and 8 deletions

View File

@ -142,14 +142,23 @@
Please review the <a href="https://matrix.org/legal/terms-and-conditions/" target="_blank">terms and conditions</a> before using this Service.
</p>
{% if not public_version %}
<!-- The variables used here are only provided when the 'u' param is given to the homeserver -->
<form method="post" action="consent">
<input type="hidden" name="v" value="{{version}}"/>
<input type="hidden" name="u" value="{{user}}"/>
<input type="hidden" name="h" value="{{userhmac}}"/>
<input type="submit" value="Accept"/>
</form>
{% if has_consented %}
<hr>
<p>
Note: You have already accepted the privacy policy.
</p>
{% else %}
{% if not public_version %}
<hr>
<!-- The variables used here are only provided when the 'u' param is given to the homeserver -->
<form method="post" action="consent">
<input type="hidden" name="v" value="{{version}}"/>
<input type="hidden" name="u" value="{{user}}"/>
<input type="hidden" name="h" value="{{userhmac}}"/>
<input type="submit" value="Accept"/>
</form>
{% endif %}
{% endif %}