Fix index page style

This commit is contained in:
Aleksandr Zaitsev 2024-03-11 18:16:21 +02:00
parent 20b3b9da12
commit 8381edab93
2 changed files with 19 additions and 7 deletions

View File

@ -18,7 +18,7 @@
</div>
<div class="text-center mt-5">
{% if tournamentCount > 0 %}
<div>There are {{ tournamentCount }} created tournaments.</div>
<h3 class="mb-5">There are {{ tournamentCount }} created tournaments.</h3>
{% for tournament in tournamentList %}
<div>
@ -26,11 +26,23 @@
</div>
{% endfor %}
{% if page > 0 %}
<a href="{{ path('tournament_list_get', { page: page - 1 }) }}">Previous</a>
{% endif %}
{% if page + 1 < tournamentCount/tournamentPerPage and tournamentList.count() >= tournamentPerPage %}
<a href="{{ path('tournament_list_get', { page: page + 1 }) }}">Next</a>
{% if tournamentCount/tournamentPerPage > page %}
<nav aria-label="Page navigation example" class=" mt-5">
<ul class="pagination justify-content-center">
{% if page > 0 %}
<li class="page-item">
<a class="page-link" href="{{ path('tournament_list_get', { page: page - 1 }) }}">Previous</a>
</li>
{% endif %}
{% if page + 1 < tournamentCount/tournamentPerPage and tournamentList.count() >= tournamentPerPage %}
<li class="page-item">
<a class="page-link" href="{{ path('tournament_list_get', { page: page + 1 }) }}">Next</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}
{% else %}
<div>No tournaments have been created yet.</div>

View File

@ -8,7 +8,7 @@
<div class="text-center mt-5">
<h2><span>{{ division.getTitle() }}</span> division qualification </h2>
{% set divisionPlayers = division.getPlayerList() %}
<table class="table table-striped table-responsive">
<table class="table table-striped table-responsive-lg">
<tr>
<th>Team</th>
{% for opponent in divisionPlayers %}