aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-26 17:36:00 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-26 17:36:00 +0100
commit610177be35ec791edae9577f104d0132f2a28364 (patch)
treefaacd7ff38959170679690acc300bb51d4a9c869 /pyblackbird_cc/templates
parent2bf5333199b74f7f52706b79a58c29055b10b786 (diff)
Fix link on card which was overriding the detail and edit links
Diffstat (limited to 'pyblackbird_cc/templates')
-rw-r--r--pyblackbird_cc/templates/resources/resource_list.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html
index 7fdd092..88c6a79 100644
--- a/pyblackbird_cc/templates/resources/resource_list.html
+++ b/pyblackbird_cc/templates/resources/resource_list.html
@@ -45,13 +45,12 @@
</div>
<div class="d-flex flex-row justify-content-between flex-wrap">
{% for resource in featured_resources %}
- <div class="card mx-2 mt-2" style="width: 22rem;">
+ <div class="card mx-2 mt-2" style="width: 24rem;">
<img class="card-img-top"
src="{{ resource.thumbnail_urls|first }}"
alt="{{ resource.thumbnail_filename }}" />
<div class="card-body">
- <a href="{% url 'resources:resource_detail' resource_id=resource.id %}" class="stretched-link"></a>
- <h5 class="card-title">{{ resource.name }}</h5>
+ <h5 class="card-title"><a href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}</a></h5>
<div class="d-flex flex-row justify-content-start align-content-center">
<div>
<span class="badge bg-danger me-2">{{ resource.main_resource_category_name }}</span>
@@ -99,8 +98,7 @@
src="{{ resource.thumbnail_urls|first }}"
alt="{{ resource.thumbnail_filename }}" />
<div class="card-body">
- <a href="{% url 'resources:resource_detail' resource_id=resource.id %}" class="stretched-link"></a>
- <h5 class="card-title">{{ resource.name }}</h5>
+ <h5 class="card-title"><a href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}</a></h5>
<div class="d-flex flex-row justify-content-start align-content-center">
<div>
<span class="badge bg-danger me-2">{{ resource.main_resource_category_name }}</span>