From 385ec08042bbb3bb6a28a61985315f98a0a8e874 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 28 Jul 2024 17:26:01 +0100 Subject: UI changes on index (see eblow) - removed Detail button - put Edit button in a card footer - Formatting the html --- .../templates/resources/resource_list.html | 93 ++++++++++++---------- 1 file changed, 49 insertions(+), 44 deletions(-) (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html index 0bac0f8..f82157c 100644 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ b/pyblackbird_cc/templates/resources/resource_list.html @@ -44,44 +44,47 @@
- {% for resource in featured_resources %} + {% for resource in featured_resources %} -
- {{ resource.thumbnail_filename }} -
-
{{ resource.name }}
-
-
- {{ resource.main_resource_category_name }} -
-
- {{ resource.age_range }} -
+
+ {{ resource.thumbnail_filename }} +
+
{{ resource.name }}
+
+
+ {{ resource.main_resource_category_name }} +
+
+ {{ resource.age_range }} +
{% if request.user.is_authenticated and request.user.is_staff %}
Feature slot: {{ resource.feature_slot }}
{% endif %} -
- {% if resource.card_description %} -

{{ resource.card_description | markdown | safe }}

- {% else %} -

{{ resource.description | markdown | safe }}

- {% endif %} - Details - {% if request.user.is_authenticated and request.user.is_staff %} - Edit - {% endif %}
+ {% if resource.card_description %} +

{{ resource.card_description | markdown | safe }}

+ {% else %} +

{{ resource.description | markdown | safe }}

+ {% endif %}
- {% endfor %} - {% else %} -

There are no featured resources

- {% endif %} + {% if request.user.is_authenticated and request.user.is_staff %} + +
+ {% endfor %} + {% else %} +

There are no featured resources

+ {% endif %}
@@ -94,17 +97,19 @@
{% for resource in resource_list %} -{#
#} + {#
#}
{{ resource.thumbnail_filename }} + alt="{{ resource.thumbnail_filename }}"/>
-
{{ resource.name }}
+
{{ resource.name }}
- {{ resource.main_resource_category_name }} + {{ resource.main_resource_category_name }}
{{ resource.age_range }} @@ -115,20 +120,20 @@ {% else %}

{{ resource.description | markdown | safe }}

{% endif %} - Details - {% if request.user.is_authenticated and request.user.is_staff %} - Edit - {% endif %} +
+ {% if request.user.is_authenticated and request.user.is_staff %} +
{% endfor %}
-
- {% else %} -

There are no resources

- {% endif %} +
+ {% else %} +

There are no resources

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