factor navigation in base.html

clubs
Laurent 2 years ago
parent c10319743d
commit 10e0a5cceb
  1. 6
      tournaments/templates/tournaments/base.html
  2. 13
      tournaments/templates/tournaments/group_stages.html
  3. 18
      tournaments/templates/tournaments/matches.html
  4. 27
      tournaments/templates/tournaments/summons.html

@ -41,6 +41,12 @@
</div> </div>
</header> </header>
<nav class="margin10">
<a href="{% url 'tournament' tournament.id %}" class="mybox">Matches</a>
<a href="{% url 'group-stages' tournament.id %}" class="mybox">Poules</a>
<a href="{% url 'tournament-summons' tournament.id %}" class="mybox">Convocations</a>
</nav>
<main> <main>
<!-- Content --> <!-- Content -->
{% block content %} {% block content %}

@ -6,15 +6,10 @@
{% block content %} {% block content %}
<div class="margin10"> <div class="grid-x">
<a href="{% url 'tournament' tournament.id %}" class="mybox">Matches</a> {% for group_stage in group_stages %}
<a href="{% url 'group-stages' tournament.id %}" class="mybox">Poules</a> {% include 'tournaments/group_stage_cell.html' %}
<a href="{% url 'tournament-summons' tournament.id %}" class="mybox">Convocations</a> {% endfor %}
</div> </div>
<div class="grid-x">
{% for group_stage in group_stages %}
{% include 'tournaments/group_stage_cell.html' %}
{% endfor %}
</div>
{% endblock %} {% endblock %}

@ -6,18 +6,12 @@
{% block content %} {% block content %}
<div class="margin10"> {% if matches %}
<a href="{% url 'tournament' tournament.id %}" class="mybox">Matches</a> <div class="grid-x">
<a href="{% url 'group-stages' tournament.id %}" class="mybox">Poules</a> {% for match in matches %}
<a href="{% url 'tournament-summons' tournament.id %}" class="mybox">Convocations</a> {% include 'tournaments/match_cell.html' %}
{% endfor %}
</div> </div>
{% endif %}
{% if matches %}
<div class="grid-x">
{% for match in matches %}
{% include 'tournaments/match_cell.html' %}
{% endfor %}
</div>
{% endif %}
{% endblock %} {% endblock %}

@ -8,24 +8,23 @@
{% load static %} {% load static %}
<div class="margin10"> {% if team_summons %}
<a href="{% url 'tournament' tournament.id %}" class="mybox">Matches</a>
<a href="{% url 'group-stages' tournament.id %}" class="mybox">Poules</a>
<a href="{% url 'tournament-summons' tournament.id %}" class="mybox">Convocations</a>
</div>
<div class="grid-x padding-bottom"> <div class="grid-x padding-bottom">
<div class="cell medium-6 large-6 my-block"> <div class="cell medium-6 large-6 my-block">
<div class="bubble"> <div class="bubble">
{% for summon in team_summons %} {% for summon in team_summons %}
{% include 'tournaments/summon_row.html' %} {% include 'tournaments/summon_row.html' %}
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
</div>
{% endif %}
</div>
{% endblock %} {% endblock %}

Loading…
Cancel
Save