From 3ead205cd83ec9618e77f2f72f0725541dc205a9 Mon Sep 17 00:00:00 2001 From: trisua Date: Wed, 13 Aug 2025 11:03:04 -0400 Subject: [PATCH] fix: policy consent links --- crates/app/src/public/html/root.lisp | 3 ++- crates/app/src/routes/pages/misc.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/app/src/public/html/root.lisp b/crates/app/src/public/html/root.lisp index 4fc5b81..0cd836f 100644 --- a/crates/app/src/public/html/root.lisp +++ b/crates/app/src/public/html/root.lisp @@ -151,7 +151,7 @@ } }); }")))))) - (text "{% elif user and renew_policy_consent -%}") + (text "{% elif user and renew_policy_consent and not hide_policies -%}") ; renew policy consent (article (main @@ -174,6 +174,7 @@ (a ("href" "{{ config.policies.privacy }}") (text "Privacy policy")))) + (p ("style" "margin: 1rem 0 0") (text "Policies last updated: ") (span ("class" "date") (text "{{ config.policies.last_updated }}"))) (hr ("class" "margin")) (button ("onclick" "update_policy_consent()") diff --git a/crates/app/src/routes/pages/misc.rs b/crates/app/src/routes/pages/misc.rs index 16011cc..915df77 100644 --- a/crates/app/src/routes/pages/misc.rs +++ b/crates/app/src/routes/pages/misc.rs @@ -567,6 +567,7 @@ pub async fn markdown_document_request( let mut context = initial_context(&data.0.0.0, lang, &user).await; context.insert("file", &file); context.insert("file_name", &name); + context.insert("hide_policies", &true); // return Ok(Html(data.1.render("misc/markdown.html", &context).unwrap()))