From 8381edab9387990b78b6f9fabf0b6922d8614821 Mon Sep 17 00:00:00 2001 From: Qvinti Date: Mon, 11 Mar 2024 18:16:21 +0200 Subject: [PATCH] Fix index page style --- templates/index.html.twig | 24 ++++++++++++++++++------ templates/tournament.html.twig | 2 +- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/templates/index.html.twig b/templates/index.html.twig index 2b94600..3453bdb 100644 --- a/templates/index.html.twig +++ b/templates/index.html.twig @@ -18,7 +18,7 @@
{% if tournamentCount > 0 %} -
There are {{ tournamentCount }} created tournaments.
+

There are {{ tournamentCount }} created tournaments.

{% for tournament in tournamentList %}
@@ -26,11 +26,23 @@
{% endfor %} - {% if page > 0 %} - Previous - {% endif %} - {% if page + 1 < tournamentCount/tournamentPerPage and tournamentList.count() >= tournamentPerPage %} - Next + {% if tournamentCount/tournamentPerPage > page %} + + + {% endif %} {% else %}
No tournaments have been created yet.
diff --git a/templates/tournament.html.twig b/templates/tournament.html.twig index 9b2735d..a766c9d 100644 --- a/templates/tournament.html.twig +++ b/templates/tournament.html.twig @@ -8,7 +8,7 @@

{{ division.getTitle() }} division qualification

{% set divisionPlayers = division.getPlayerList() %} - +
{% for opponent in divisionPlayers %}
Team