aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
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/templates
parentRemove unused Bulma Tooltip extension (diff)
Rename resource type -> resource category in route
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/resources/resources.html14
-rw-r--r--pydis_site/templates/resources/resources_list.html2
2 files changed, 8 insertions, 8 deletions
diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html
index 352a53dd..7b044f06 100644
--- a/pydis_site/templates/resources/resources.html
+++ b/pydis_site/templates/resources/resources.html
@@ -24,7 +24,7 @@
<div class="tile is-vertical is-9">
<div class="tile">
- <a class="tile is-8 is-parent" href="{% url "resources:resources" type="reading" %}">
+ <a class="tile is-8 is-parent" href="{% url "resources:resources" category="reading" %}">
<article class="tile is-child box hero is-black" id="readingBlock">
<p class="title is-size-1"><i class="fad fa-book-alt" aria-hidden="true"></i> Read</p>
<p class="subtitle is-size-4">Lovingly curated books to explore</p>
@@ -32,7 +32,7 @@
</a>
<div class="tile">
- <a class="tile is-parent" href="{% url "resources:resources" type="videos" %}">
+ <a class="tile is-parent" href="{% url "resources:resources" category="videos" %}">
<article class="tile is-child box hero is-danger is-bold">
<p class="title is-size-1"><i class="fad fa-video" aria-hidden="true"></i> Watch</p>
<p class="subtitle is-size-4">Visually engaging</p>
@@ -42,13 +42,13 @@
</div>
<div class="tile">
- <a class="tile is-parent" href="{% url "resources:resources" type="interactive" %}">
+ <a class="tile is-parent" href="{% url "resources:resources" category="interactive" %}">
<article class="tile is-child box hero is-black" id="interactiveBlock">
<p class="title is-size-1"><i class="fad fa-code" aria-hidden="true"></i> Try</p>
<p class="subtitle is-size-4">Interactively discover the possibilities</p>
</article>
</a>
- <a class="tile is-8 is-parent" href="{% url "resources:resources" type="courses" %}">
+ <a class="tile is-8 is-parent" href="{% url "resources:resources" category="courses" %}">
<article class="tile is-child box hero is-success is-bold">
<p class="title is-size-1"><i class="fad fa-graduation-cap" aria-hidden="true"></i> Learn</p>
<p class="subtitle is-size-4">Structured courses with clear goals</p>
@@ -61,14 +61,14 @@
<div class="tile is-ancestor">
<div class="tile is-vertical is-9">
<div class="tile">
- <a class="tile is-8 is-parent" href="{% url "resources:resources" type="communities" %}">
+ <a class="tile is-8 is-parent" href="{% url "resources:resources" category="communities" %}">
<article class="tile is-child box hero is-black" id="communitiesBlock">
<p class="title is-size-1"><i class="fad fa-users" aria-hidden="true"></i> Communities</p>
<p class="subtitle is-size-4">Some of our best friends</p>
</article>
</a>
<div class="tile">
- <a class="tile is-parent" href="{% url "resources:resources" type="podcasts" %}">
+ <a class="tile is-parent" href="{% url "resources:resources" category="podcasts" %}">
<article class="tile is-child box hero is-black" id="podcastsBlock">
<p class="title is-size-1"><i class="fad fa-podcast" aria-hidden="true"></i> Listen</p>
<p class="subtitle is-size-4">Regular podcasts to follow</p>
@@ -77,7 +77,7 @@
</div>
</div>
</div>
- <a class="tile is-parent" href="{% url "resources:resources" type="tools" %}">
+ <a class="tile is-parent" href="{% url "resources:resources" category="tools" %}">
<article class="tile is-child box hero is-dark">
<p class="title is-size-1"><i class="fad fa-tools" aria-hidden="true"></i> Tools</p>
<p class="subtitle is-size-4">Things we love to use</p>
diff --git a/pydis_site/templates/resources/resources_list.html b/pydis_site/templates/resources/resources_list.html
index 96b128be..e2be3cb7 100644
--- a/pydis_site/templates/resources/resources_list.html
+++ b/pydis_site/templates/resources/resources_list.html
@@ -33,7 +33,7 @@
{% for subcategory in subcategories|dictsort:"category_info.position" %}
<h2 id="{{ subcategory.category_info.raw_name }}">
- <a href="{% url "resources:resources" type=category_info.raw_name %}#{{ subcategory.category_info.raw_name }}">
+ <a href="{% url "resources:resources" category=category_info.raw_name %}#{{ subcategory.category_info.raw_name }}">
{{ subcategory.category_info.name }}
</a>
</h2>