From c7261ae893583707d1720492f67b5a3f5ffcdf72 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 22 May 2024 20:10:38 +0100 Subject: Adds a new page template to manipulate feature resources - but we may not need this --- .../templates/resources/create_featured_resource.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/create_featured_resource.html b/pyblackbird_cc/templates/resources/create_featured_resource.html index 7995cad..e98b2ba 100644 --- a/pyblackbird_cc/templates/resources/create_featured_resource.html +++ b/pyblackbird_cc/templates/resources/create_featured_resource.html @@ -1,9 +1,21 @@ {% extends "base.html" %} {% load static %} -{% block title %}?Add featured resource{% endblock title %} +{% block title %}Add featured resource{% endblock title %} {% block content %} -

Bobbins -totalus bobinus

+ +{% if request.user.is_authenticated and request.user.is_staff %} +
+
+

Configure featured resources

+

You can select three resources to be "featured" on the main page

+
+
+{% else %} +

You must be a super-user to access this page.

+{% endif %} + + {% endblock content %} -- cgit v1.2.3