From e15b2299adc833af918cc8491f9e5083a3cfcd4a Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sun, 2 Oct 2022 09:42:41 +0100 Subject: [PATCH] apply CSS classes to /user/archive.html and /user/pages.html files. Both files are basically the same with minor changes in classes and HTML tags. Commited both files at the same time because of this. --- templates/user/archive.html | 66 ++++++++++++++++++++++++++++------- templates/user/pages.html | 69 ++++++++++++++++++++++++++++--------- 2 files changed, 106 insertions(+), 29 deletions(-) diff --git a/templates/user/archive.html b/templates/user/archive.html index e64a27f..cde640c 100644 --- a/templates/user/archive.html +++ b/templates/user/archive.html @@ -1,18 +1,58 @@ {% 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 %} +
+
+

Archive Index

+ +
+ {% for entry in archive-entries %} +
+
+ {{entry.title}} +

{{entry.title}}

+
+
+ + {{entry.title}} + + + {{entry.title}} + + {% if roles.administrator %} +
+ + + +
+ {% endif %} +
+
+ {% endfor %} +
+
-{% endfor %} {% endblock %} diff --git a/templates/user/pages.html b/templates/user/pages.html index 7fffe69..67611c7 100644 --- a/templates/user/pages.html +++ b/templates/user/pages.html @@ -1,21 +1,58 @@ {% extends "layouts/default.html" %} {% block title %}A list of the site's pages.{% endblock %} {% block content %} -

Pages

-{% for page in pages %} -{% if page.can-delete == 1 %} -
- {{page.title}} - Edit - {% if roles.administrator %} -
- - - -
- {% endif %} +
+
+

Pages Index

+ +
+ {% for page in pages %} + {% if page.can-delete == 1 %} +
+

{{page.title}}

+
+ + {{page.title}} + + + {{entry.title}} + + {% if roles.administrator %} +
+ + + +
+ {% endif %} +
+
+ {% endif %} + {% endfor %} +
+
-{% endif %} -{% endfor %} - {% endblock %}