summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-05 19:21:00 -0700
committerAndrew Godwin2022-12-05 19:24:46 -0700
commita31f676b46a4d904954b8b7227dcde779aedca54 (patch)
treed00fa3e022ff08f154f431777ba37e2f43127fd6 /templates
parentda9a3d853eda1173ac8913908d512fb9babbd136 (diff)
downloadtakahe-a31f676b46a4d904954b8b7227dcde779aedca54.tar.gz
takahe-a31f676b46a4d904954b8b7227dcde779aedca54.tar.bz2
takahe-a31f676b46a4d904954b8b7227dcde779aedca54.zip
Policy pages and signup tests.
Fixes #113
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html6
-rw-r--r--templates/flatpage.html8
-rw-r--r--templates/forms/_field.html2
-rw-r--r--templates/index.html2
-rw-r--r--templates/settings/_menu.html3
5 files changed, 18 insertions, 3 deletions
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 @@
</main>
<footer>
- <span>Powered by <a href="https://jointakahe.org">Takahē {{ config.version }}</a></span>
+ {% if config.site_about %}<a href="{% url "about" %}">About</a>{% endif %}
+ {% if config.policy_rules %}<a href="{% url "rules" %}">Server Rules</a>{% endif %}
+ {% if config.policy_terms %}<a href="{% url "terms" %}">Terms of Service</a>{% endif %}
+ {% if config.policy_privacy %}<a href="{% url "privacy" %}">Privacy Policy</a>{% endif %}
+ <a href="https://jointakahe.org">Takahē {{ config.version }}</a>
</footer>
</body>
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 %}
+ <h1>{{ title }}</h1>
+ {{ 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 @@
</label>
{% if field.help_text %}
<p class="help">
- {{ field.help_text|linebreaksbr }}
+ {{ field.help_text|safe|linebreaksbr }}
</p>
{% 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 %}
<div class="about">
<img class="banner" src="{{ config.site_banner }}">
- {{ config.site_about|safe|linebreaks }}
+ {{ about }}
</div>
<h2>People</h2>
{% 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 @@
<a href="{% url "admin_basic" %}" {% if section == "basic" %}class="selected"{% endif %} title="Basic">
<i class="fa-solid fa-book"></i> Basic
</a>
+ <a href="{% url "admin_policies" %}" {% if section == "policies" %}class="selected"{% endif %} title="Policies">
+ <i class="fa-solid fa-file-lines"></i> Policies
+ </a>
<a href="{% url "admin_domains" %}" {% if section == "domains" %}class="selected"{% endif %} title="Domains">
<i class="fa-solid fa-globe"></i> Domains
</a>