From 5cc14f74bf9da390be7230d6f4a997ccc7b8db83 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 24 Sep 2022 01:24:00 +0100 Subject: [PATCH] create /user/archive.html and /arctice.html templates. Both templates aim to list out all the archives stored in the system. The /user/archive.html template, also, includes admin/back-end features like edit and delete links/controls. --- templates/archive.html | 12 ++++++++++++ templates/user/archive.html | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 templates/archive.html create mode 100644 templates/user/archive.html diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..aadd02a --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,12 @@ +{% extends "layouts/default.html" %} +{% block title %}A list of the site's archive entries.{% endblock %} +{% block content %} +

Archive

+ +{% for entry in archive-entries %} +
+ {{entry.title}} +
+{% endfor %} + +{% endblock %} diff --git a/templates/user/archive.html b/templates/user/archive.html new file mode 100644 index 0000000..808024e --- /dev/null +++ b/templates/user/archive.html @@ -0,0 +1,18 @@ +{% extends "layouts/default.html" %} +{% block title %}Manage the site's archive.{% endblock %} +{% block content %} +

Archive

+{% for entry in archive-entries %} +
+ {{entry.title}} + Edit + {% if roles.administrator %} +
+ + + +
+ {% endif %} +
+{% endfor %} +{% endblock %}