Show see all button

clubs
Laurent 1 year ago
parent f42d8ba394
commit 770ab1d145
  1. 6
      tournaments/templates/tournaments/tournaments.html

@ -23,7 +23,7 @@
{% include 'tournaments/tournament_row.html' %} {% include 'tournaments/tournament_row.html' %}
{% endfor %} {% endfor %}
{% if live|length > 10 %} {% if live|length >= 10 %}
<div class="right"> <div class="right">
{% if club %} {% if club %}
<a href="{% url 'tournaments' %}?filter=1&club={{ club.id }}">Voir tous...</a> <a href="{% url 'tournaments' %}?filter=1&club={{ club.id }}">Voir tous...</a>
@ -43,7 +43,7 @@
{% include 'tournaments/tournament_row.html' %} {% include 'tournaments/tournament_row.html' %}
{% endfor %} {% endfor %}
{% if future|length > 10 %} {% if future|length >= 10 %}
<div class="right"> <div class="right">
{% if club %} {% if club %}
<a href="{% url 'tournaments' %}?filter=0&club={{ club.id }}">Voir tous...</a> <a href="{% url 'tournaments' %}?filter=0&club={{ club.id }}">Voir tous...</a>
@ -70,7 +70,7 @@
{% include 'tournaments/tournament_row.html' %} {% include 'tournaments/tournament_row.html' %}
{% endfor %} {% endfor %}
{% if ended|length > 10 %} {% if ended|length >= 10 %}
<div class="right"> <div class="right">
{% if club %} {% if club %}
<a href="{% url 'tournaments' %}?filter=2&club={{ club.id }}">Voir tous...</a> <a href="{% url 'tournaments' %}?filter=2&club={{ club.id }}">Voir tous...</a>

Loading…
Cancel
Save