#252 Make category link version-sensitive

This commit is contained in:
Lacey Williams Henschel
2023-06-15 16:36:05 -07:00
parent ff725f5c6c
commit 25d24fbc3d

View File

@@ -65,7 +65,7 @@
<span class="block py-1 px-2 rounded cursor-pointer hover:bg-gray-100">Categories:
{% for category in object.categories.all %}
<a class="inline text-sky-600" href="{% url 'libraries' %}?category={{ category.slug }}">{{ category.name }}</a>
<a class="inline text-sky-600" href="{% url 'libraries' %}?category={{ category.slug }}{% if version %}&version={{ version.slug }}{% endif %}">{{ category.name }}</a>
{% endfor %}
</span>