From 597a67f1d4c0a9b77d351cc1e1fe07f53d9f388d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 1 Sep 2024 19:55:34 +0100 Subject: Drop shadows on the featured and standard resource panels --- pyblackbird_cc/templates/resources/admin_bar.html | 29 ++++++++-------------- .../resources/resource_card_featured.html | 2 +- .../resources/resource_card_standard.html | 2 +- .../templates/resources/resource_list.html | 6 +++-- 4 files changed, 17 insertions(+), 22 deletions(-) (limited to 'pyblackbird_cc/templates') diff --git a/pyblackbird_cc/templates/resources/admin_bar.html b/pyblackbird_cc/templates/resources/admin_bar.html index 5bddde6..ddb8e00 100644 --- a/pyblackbird_cc/templates/resources/admin_bar.html +++ b/pyblackbird_cc/templates/resources/admin_bar.html @@ -1,28 +1,21 @@ {# admin block #} {% if request.user.is_authenticated and request.user.is_staff %} -
-
Admin bar
+
+
Admin bar

Only you will see this bar - normal users will not see it. It allows us to include buttons for adding new resources, etc.

-
-
- -
- Logged in as - {{ request.user.email }} -
-
-
- {% csrf_token %} - -
-
+
+ Add a new resource +
+ Logged in as + {{ request.user.email }}
+
+ {% csrf_token %} + +
{% endif %} diff --git a/pyblackbird_cc/templates/resources/resource_card_featured.html b/pyblackbird_cc/templates/resources/resource_card_featured.html index 2d11ee8..e920cef 100644 --- a/pyblackbird_cc/templates/resources/resource_card_featured.html +++ b/pyblackbird_cc/templates/resources/resource_card_featured.html @@ -1,7 +1,7 @@ {% load static %} {% load markdown_extras %} -
+
{{ resource.thumbnail_filename }} diff --git a/pyblackbird_cc/templates/resources/resource_card_standard.html b/pyblackbird_cc/templates/resources/resource_card_standard.html index 8dc6fba..2b280a9 100644 --- a/pyblackbird_cc/templates/resources/resource_card_standard.html +++ b/pyblackbird_cc/templates/resources/resource_card_standard.html @@ -4,7 +4,7 @@
-
+
+ {% include "resources/admin_bar.html" %} +
{# featured resources #} {% if featured_resources %} @@ -41,7 +43,7 @@
{% for resource in resource_list %} - {% include "resources/resource_card_standard.html" with resource=resource %} + {% include "resources/resource_card_standard.html" with resource=resource %} {% endfor %}
{% else %} -- cgit v1.2.3