aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/resources/resource_card_featured.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyblackbird_cc/templates/resources/resource_card_featured.html')
-rw-r--r--pyblackbird_cc/templates/resources/resource_card_featured.html12
1 files changed, 4 insertions, 8 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_card_featured.html b/pyblackbird_cc/templates/resources/resource_card_featured.html
index e920cef..473c928 100644
--- a/pyblackbird_cc/templates/resources/resource_card_featured.html
+++ b/pyblackbird_cc/templates/resources/resource_card_featured.html
@@ -10,10 +10,8 @@
<h5 class="card-title"><a
href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}</a></h5>
</div>
- <div>
+ <div class="d-flex flex-row justify-content-start align-items-center mt-2">
<span class="badge bg-secondary me-2">{{ resource.age_range }}</span>
- </div>
- <div>
{% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %}
<span class="badge me-2"
style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">EFL</span>
@@ -21,12 +19,10 @@
<span class="badge me-2"
style="background-color: {{ resource.main_resource_category_colour_css_class }}; color: {{ resource.main_resource_badge_foreground_colour }}">{{ resource.main_resource_category_name }}</span>
{% endif %}
- </div>
- {% if request.user.is_authenticated and request.user.is_staff %}
- <div>
+ {% if request.user.is_authenticated and request.user.is_staff %}
<span class="badge bg-info me-2">Feature slot: {{ resource.feature_slot }}</span>
- </div>
- {% endif %}
+ {% endif %}
+ </div>
{% if resource.card_description %}
<p class="card-text my-2">{{ resource.card_description | markdown | safe }}</p>
{% else %}