diff options
author | 2022-01-31 18:02:59 +0100 | |
---|---|---|
committer | 2022-01-31 18:02:59 +0100 | |
commit | 91935d88476bade9701d354e82cafba912a33f69 (patch) | |
tree | bf9428423f5944e62bafd04a51b8a111a0a4e8ba /pydis_site/templates | |
parent | Added margins and max-width to filtering column. (diff) |
Get rid of invalid filters in the URL.
Diffstat (limited to 'pydis_site/templates')
-rw-r--r-- | pydis_site/templates/resources/resources.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html index 13bba1f2..a37bf80a 100644 --- a/pydis_site/templates/resources/resources.html +++ b/pydis_site/templates/resources/resources.html @@ -6,6 +6,11 @@ {% block title %}Resources{% endblock %} {% block head %} + {# Inject a JSON object of all valid filter types from the view #} + <script> + const validFilters = {{ valid_filters | safe }} + </script> + <link rel="stylesheet" href="{% static "css/resources/resources.css" %}"> <link rel="stylesheet" href="{% static "css/collapsibles.css" %}"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |