aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/resources/views/resources.py2
-rw-r--r--pydis_site/templates/resources/resource_box.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/resources/views/resources.py b/pydis_site/apps/resources/views/resources.py
index 0e448ece..ac9e8355 100644
--- a/pydis_site/apps/resources/views/resources.py
+++ b/pydis_site/apps/resources/views/resources.py
@@ -111,7 +111,7 @@ class ResourceView(View):
if resource_type:
dashless_resource_type = resource_type.replace("-", " ")
- if dashless_resource_type.title() not in self.filters['Type']['filters']:
+ if dashless_resource_type.title() not in self.filters["Type"]["filters"]:
return HttpResponseNotFound()
resource_type = resource_type.replace(" ", "-")
diff --git a/pydis_site/templates/resources/resource_box.html b/pydis_site/templates/resources/resource_box.html
index 0ba8b0ec..2ec233cb 100644
--- a/pydis_site/templates/resources/resource_box.html
+++ b/pydis_site/templates/resources/resource_box.html
@@ -14,8 +14,8 @@
<p>{{ resource.description|safe }}</p>
<div class="is-flex is-align-items-center">
- {# Add primary link #}
- {% if 'title_url' in resource %}
+ {# Add primary link #}
+ {% if "title_url" in resource %}
<span class="icon is-size-4" style="margin: 5px;">
<a href="{{ resource.title_url }}">
<i class="fas fa-external-link-alt fa-fw is-size-4 resource-icon is-hoverable is-primary"></i>