summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-05-22 14:50:22 +0100
committerRichard van der Hoff <richard@matrix.org>2018-05-22 14:58:34 +0100
commit7b36d06a69942653f6c6fbb6dbf341a452002237 (patch)
tree243618cf64c64c54fb82529724c02cacc1b9910b /docs
parentEnable auto-escaping for the consent templates (diff)
downloadsynapse-7b36d06a69942653f6c6fbb6dbf341a452002237.tar.xz
Add a 'has_consented' template var to consent forms
fixes #3260
Diffstat (limited to 'docs')
-rw-r--r--docs/privacy_policy_templates/README.md2
-rw-r--r--docs/privacy_policy_templates/en/1.0.html6
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/privacy_policy_templates/README.md b/docs/privacy_policy_templates/README.md

index 8e91c516b3..a3e6fc0986 100644 --- a/docs/privacy_policy_templates/README.md +++ b/docs/privacy_policy_templates/README.md
@@ -9,7 +9,7 @@ form_secret: <unique but arbitrary secret> user_consent: template_dir: docs/privacy_policy_templates - default_version: 1.0 + version: 1.0 ``` You should then be able to enable the `consent` resource under a `listener` diff --git a/docs/privacy_policy_templates/en/1.0.html b/docs/privacy_policy_templates/en/1.0.html
index ab8666f0c3..55c5e4b612 100644 --- a/docs/privacy_policy_templates/en/1.0.html +++ b/docs/privacy_policy_templates/en/1.0.html
@@ -4,6 +4,11 @@ <title>Matrix.org Privacy policy</title> </head> <body> + {% if has_consented %} + <p> + Your base already belong to us. + </p> + {% else %} <p> All your base are belong to us. </p> @@ -13,5 +18,6 @@ <input type="hidden" name="h" value="{{userhmac}}"/> <input type="submit" value="Sure thing!"/> </form> + {% endif %} </body> </html>