This commit is contained in:
Nikola Kubiczek 2023-03-20 18:10:39 +01:00
parent d3917c7450
commit 8b83687776

View File

@ -7,7 +7,7 @@
<ul class="pagination-list">
{% for edition in editions %}
<li>
<a class="pagination-link {% if edition.year == year %}is-current"{% elif edition.scores_available %}" href="{% url 'scores' edition.year %}"{% endif %}"
<a class="pagination-link {% if edition.year == year %}is-current"{% elif edition.scores_available or request.user.is_superuser %}" href="{% url 'scores' edition.year %}"{% endif %}"
{% if not edition.scores_available and not request.user.is_superuser %}disabled{% endif%}
>{{ edition.roman }}</a>
</li>