aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/resources
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-03-30 13:12:05 +0300
committerGravatar ks129 <[email protected]>2021-03-30 13:12:05 +0300
commita95e03f56ce1e7627fdf2abb1c288b9aa0450682 (patch)
treee214c3e0240ff1c2a1d2908e408aa771e0bc6d38 /pydis_site/apps/resources
parentRemove unused Bulma Tooltip extension (diff)
Rename resource type -> resource category in route
Diffstat (limited to 'pydis_site/apps/resources')
-rw-r--r--pydis_site/apps/resources/urls.py2
-rw-r--r--pydis_site/apps/resources/views/resources_list.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/resources/urls.py b/pydis_site/apps/resources/urls.py
index e5330215..19142081 100644
--- a/pydis_site/apps/resources/urls.py
+++ b/pydis_site/apps/resources/urls.py
@@ -5,5 +5,5 @@ from pydis_site.apps.resources import views
app_name = "resources"
urlpatterns = [
path("", views.ResourcesView.as_view(), name="index"),
- path("<str:type>/", views.ResourcesListView.as_view(), name="resources")
+ path("<str:category>/", views.ResourcesListView.as_view(), name="resources")
]
diff --git a/pydis_site/apps/resources/views/resources_list.py b/pydis_site/apps/resources/views/resources_list.py
index b09793d7..55f22993 100644
--- a/pydis_site/apps/resources/views/resources_list.py
+++ b/pydis_site/apps/resources/views/resources_list.py
@@ -20,7 +20,7 @@ class ResourcesListView(TemplateView):
"""Add resources and subcategories data into context."""
context = super().get_context_data(**kwargs)
- resource_path = RESOURCES_PATH / self.kwargs["type"]
+ resource_path = RESOURCES_PATH / self.kwargs["category"]
if (
not resource_path.is_dir()
or not resource_path.joinpath("_category_info.yaml").exists()