fix: policy consent links

This commit is contained in:
trisua 2025-08-13 11:03:04 -04:00
parent 2edef9bd35
commit 3ead205cd8
2 changed files with 3 additions and 1 deletions

View file

@ -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()")

View file

@ -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()))