From 7e2f04d370d22e2619e879325cc81c1fbca44e37 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sun, 18 Sep 2022 23:07:23 +0100 Subject: [PATCH] add can-delete check to /user/pages.html template. --- templates/user/pages.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/user/pages.html b/templates/user/pages.html index 864d270..72e99c3 100644 --- a/templates/user/pages.html +++ b/templates/user/pages.html @@ -29,14 +29,16 @@ {% for page in pages %}
{{page}} - Edit {% if roles.administrator %} + Edit + {% ifequal page.can-delete 1 %}
- +
{% endif %} + {% endif %}
{% endfor %}