diff options
author | 2022-02-01 20:21:10 +0100 | |
---|---|---|
committer | 2022-02-01 20:21:10 +0100 | |
commit | 11cbc008ee5f5bafb9ca24fbd8564202310fa6f4 (patch) | |
tree | 1ad27c68a0090b3321bb1c7b269b5742cf929f67 /pydis_site | |
parent | Add type annotations for sort key method. (diff) |
Kaizen: Make jchrists wildest dreams come true
Co-authored-by: Johannes Christ <[email protected]>
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/resources/views/resources.py | 2 | ||||
-rw-r--r-- | pydis_site/templates/resources/resource_box.html | 4 |
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> |