From f0356b00f01c2ee09edd0b990b6db40f86f0eab7 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 17 Sep 2022 13:25:55 +0100 Subject: [PATCH] add /user/pages.html template. This template displays a list of pages stored in the system in the /storage directory. It is very rough -- only bare basics to get the page operational. --- templates/user/pages.html | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 templates/user/pages.html diff --git a/templates/user/pages.html b/templates/user/pages.html new file mode 100644 index 0000000..d5a697c --- /dev/null +++ b/templates/user/pages.html @@ -0,0 +1,41 @@ +{% extends "layouts/default.html" %} +{% block title %}A list of the site's pages.{% endblock %} +{% block content %} +

Pages

+
+ {% if roles.logged-in %} + Dashboard + Edit Account +
+ + +
+
+ + +
+ Create Page + View Pages + {% if roles.administrator %} + Site Settings + Users + {% endif %} + {% else %} + Home + Log-in + {% endif %} +
+ +{% for page in pages %} +
+ {{page}} + Edit +
+ + + +
+
+{% endfor %} + +{% endblock %}