Fix little errors

This commit is contained in:
2021-10-09 14:27:20 +02:00
parent 4147e37854
commit 3b7c106ab7
9 changed files with 92 additions and 53 deletions

View File

@ -7,13 +7,14 @@
<ul class="pagination-list">
{% for edition in editions %}
<li>
<a class="pagination-link {% if edition.year == year %}is-current{% endif %}"
{% if edition.year != year %}href="{% url 'scores' edition.year %}"{% endif %}
<a class="pagination-link {% if edition.year == year %}is-current"{% elif edition.scores_available %}" href="{% url 'scores' edition.year %}"{% endif %}"
{% if not edition.scores_available %}disabled{% endif%}
>{{ edition.roman }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% if scores_available %}
<div class="hero has-text-centered">
<span class="title my-6">Klasyfikacja indywidualna</span>
<table class="hero-body table is-striped is-narrow is-hoverable is-fullwidth">
@ -75,4 +76,9 @@
{% endfor %}
</table>
</div>
{% else %}
<div class="hero has-text-centered">
<span class="title my-6">Wyniki niedostępne</span>
</div>
{% endif %}
{% endblock %}