From de2a8ebb12b973d20d8dfe7fc23496efdf5fb3d0 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Wed, 1 Feb 2017 18:29:19 +0100 Subject: [PATCH] Fixed layout on contest:index page --- templates/contest/index.html | 124 ++++++++++++++++++----------------- 1 file changed, 65 insertions(+), 59 deletions(-) diff --git a/templates/contest/index.html b/templates/contest/index.html index 01bfb55..acfdc34 100644 --- a/templates/contest/index.html +++ b/templates/contest/index.html @@ -4,75 +4,81 @@

Welcome, {{ user }}

-{% if user.ref %} -{# user has a reference, we can start logging QSOs! #} -
-
-
-
Ready for the contest!
-
-

- Hey {{ user }}, your exchange has been registered as {{ user.ref }}. - You are all set for the contest! So go ahead and log some QSOs! -

+ {% if user.ref %} + {# user has a reference, we can start logging QSOs! #} +
+
+
+
Ready for the contest!
+
+

+ Hey {{ user }}, your exchange has been registered as {{ user.ref }}. + You are all set for the contest! So go ahead and log some QSOs! +

+
+
-
-
-{% else %} -
-
-
-
You don't have an exchange
-
-

- Hey you, {{ user }}, you don't have an Exchange! - Get yourself registered with the contest orga on {{ contest.callQrg }}. Once you have registered with your - callsign and your current location, it will appear on this website (after refreshing) and you will be - all set for logging QSOs! -

-

- Get yourself registered on {{ contest.callQrg }}! -

+ {% else %} +
+
+
+
You don't have an exchange
+
+

+ Hey you, {{ user }}, you don't have an Exchange! + Get yourself registered with the contest orga on {{ contest.callQrg }}. Once you have registered with your + callsign and your current location, it will appear on this website (after refreshing) and you will be + all set for logging QSOs! +

+

+ Get yourself registered on {{ contest.callQrg }}! +

+
+
-
-
-{% endif %} + {% endif %} -{% if not user.cat %} -
-
-
-
You don't have a category!
-
-

- You don't have an entry category! Please set one in your profile. -

+ {% if not user.cat %} +
+
+
+
You don't have a category!
+
+

+ You don't have an entry category! Please set one in your profile. +

+
+
-
-
-{% endif %} + {% endif %} -{% if user.is_staff %} -
-
-
-
You are staff!
-
-

Hey, you are staff. Do you want to start registering people?

+ {% if user.is_staff %} +
+
+
+
You are staff!
+
+

Hey, you are staff. Do you want to start registering people?

+
+
+
+
+ {% endif %} +
+
+
+
+ {% include "contest/contestPanel.html" with contest=contest %} +
+
+ {% include "contest/qrgPanel.html" with contest=contest qrgs=qrgs %} +
+
-
-
-{% endif %} -
-
- {% include "contest/contestPanel.html" with contest=contest %} -
-
- {% include "contest/qrgPanel.html" with contest=contest qrgs=qrgs %}