Commit aefff4e3 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(categories): add link to categories in dataset header

parent 7195b7ae
......@@ -23,7 +23,7 @@
</div>
<div class="smallskip">
<span class="i-label-md"></span> {% trans "Main category" %}: {{ ds.get_main_category }}
<span class="i-label-md"></span> {% trans "Main category" %}: <a href="{% url "category_page" ds.get_main_category.slug %}">{{ ds.get_main_category }}</a>
</div>
<div class="smallskip">
......@@ -35,7 +35,7 @@
{% if ds.get_categories %}
<div class="smallskip">
<span class="i-labels-md"></span> {% trans "Additional categories" %}: {% for field in ds.get_categories.all %}{{ field|title }}{% if not forloop.last %}, {% endif %}{% endfor %}
<span class="i-labels-md"></span> {% trans "Additional categories" %}: {% for field in ds.get_categories.all %}<a href="{% url "category_page" field.slug %}">{{ field|title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
</div>
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment