aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/resources/resources.html5
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>