From dd733ea23ecc859fa69d47aeb46625ab5a3385b5 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 23 Jan 2022 13:32:48 +0100 Subject: Always add a link icon for the primary URL. --- pydis_site/templates/resources/resource_box.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pydis_site') diff --git a/pydis_site/templates/resources/resource_box.html b/pydis_site/templates/resources/resource_box.html index 671b5736..7de9ca18 100644 --- a/pydis_site/templates/resources/resource_box.html +++ b/pydis_site/templates/resources/resource_box.html @@ -1,7 +1,7 @@ {% load as_icon %} {% load get_category_icon %} -
+
{% if 'title_url' in resource %} {% include "resources/resource_box_header.html" %} @@ -13,7 +13,15 @@

{{ resource.description|safe }}

- {# Icons #} + {# Add primary link #} + {% if 'title_url' in resource %} + + + + + + {% endif %} + {# Add all additional icon #} {% for icon in resource.urls %} @@ -21,6 +29,8 @@ {% endfor %} + + {# Tags #}
{% for tag in resource.tags.topics %} {{ tag|title }} -- cgit v1.2.3