Fix index page style
This commit is contained in:
parent
20b3b9da12
commit
8381edab93
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user