fix(dgsi/archives): Use the correct url for statutes and bylaws

This commit is contained in:
Tom Hubrecht 2025-02-01 23:03:20 +01:00
parent 01be28a69c
commit fe7bdf5a20
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -8,7 +8,7 @@
{% for file in document_list %}
<a class="button bt-archive"
href="{% url "dgsi:dgn-protected-archive" file.pk %}">
{% if file.kind == "statutes" or file.kind == "bylaws" %} href="{{ file.file.url }}" {% else %} href="{% url "dgsi:dgn-protected-archive" file.pk %}" {% endif %}>
<span class="tag is-{{ file.color }} is-pulled-left">
<span class="icon"><i class="ti ti-{{ file.icon }}"></i></span>
</span>