summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-05-22 15:35:10 +0100
committerGitHub <noreply@github.com>2018-05-22 15:35:10 +0100
commit08a14b32ae0db7502f1e32473d833e5e37a335d8 (patch)
tree9c43935f65ce5a7db274542d92c34805a3b53196 /docs
parentMerge pull request #3263 from matrix-org/rav/fix_jinja_dep (diff)
parentAdd a 'has_consented' template var to consent forms (diff)
downloadsynapse-08a14b32ae0db7502f1e32473d833e5e37a335d8.tar.xz
Merge pull request #3262 from matrix-org/rav/has_already_consented
Add a 'has_consented' template var to consent forms
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>