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

View File

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