Commit 1d2f3194 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(categories): add cat links to prep dataset header

parent 01892e22
{% load static i18n %}
<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">
......@@ -11,5 +11,5 @@
{% endfor %}
</div>
<div class="smallskip">
<span class="i-labels-md"></span> {% trans "Additional categories" %}: {% if ds.get_categories %}{% for field in ds.get_categories.all %}{{ field|title }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}–{% endif %}
<span class="i-labels-md"></span> {% trans "Additional categories" %}: {% if ds.get_categories %}{% for field in ds.get_categories.all %}<a href="{% url "category_page" field.slug %}">{{ field|title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}–{% endif %}
</div>
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