From a31f676b46a4d904954b8b7227dcde779aedca54 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 5 Dec 2022 19:21:00 -0700 Subject: Policy pages and signup tests. Fixes #113 --- templates/base.html | 6 +++++- templates/flatpage.html | 8 ++++++++ templates/forms/_field.html | 2 +- templates/index.html | 2 +- templates/settings/_menu.html | 3 +++ 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 templates/flatpage.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 2fd92bf..b30e38f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -75,7 +75,11 @@ diff --git a/templates/flatpage.html b/templates/flatpage.html new file mode 100644 index 0000000..b24a6b8 --- /dev/null +++ b/templates/flatpage.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block title%}{{ title }}{% endblock %} + +{% block content %} +

{{ title }}

+ {{ content }} +{% endblock %} diff --git a/templates/forms/_field.html b/templates/forms/_field.html index d101889..b4df509 100644 --- a/templates/forms/_field.html +++ b/templates/forms/_field.html @@ -6,7 +6,7 @@ {% if field.help_text %}

- {{ field.help_text|linebreaksbr }} + {{ field.help_text|safe|linebreaksbr }}

{% endif %} {{ field.errors }} diff --git a/templates/index.html b/templates/index.html index 79f81cf..72dcf84 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@ {% block content %}
- {{ config.site_about|safe|linebreaks }} + {{ about }}

People

{% for identity in identities %} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index fa2e74e..bcb404d 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -18,6 +18,9 @@ Basic + + Policies + Domains -- cgit v1.2.3