Improve accept button in privacy policy

This commit is contained in:
BBaoVanC 2021-09-18 17:04:14 -05:00
parent a18b15c56b
commit 6a0ca701cc

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