From 75d40c560f3ed4040cd494a402dd5d24d7199265 Mon Sep 17 00:00:00 2001 From: Ed Date: Wed, 15 Feb 2023 22:38:22 +0100 Subject: [PATCH] Added detailed info about sponsor/early and late to homepage --- res/icons/star.svg | 1 + tpl/base.html | 2 ++ tpl/welcome.html | 23 +++++++++++++++++++++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 res/icons/star.svg diff --git a/res/icons/star.svg b/res/icons/star.svg new file mode 100644 index 0000000..ec47823 --- /dev/null +++ b/res/icons/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tpl/base.html b/tpl/base.html index d6d17e9..d6581e0 100644 --- a/tpl/base.html +++ b/tpl/base.html @@ -54,6 +54,8 @@ footer {opacity:0.4;margin:0;padding:0;max-width:40em;text-align:center;transition:opacity .4s;} footer:hover {opacity:1;} footer img {height:1.3em;} + + .tag {background:var(--primary);color:var(--contrast);font-size:0.8em;font-weight:600;padding:0.1em 0.3em;border-radius:3px;} diff --git a/tpl/welcome.html b/tpl/welcome.html index ccd29d5..9b5f9a2 100644 --- a/tpl/welcome.html +++ b/tpl/welcome.html @@ -23,12 +23,31 @@ - When? - 30 May → 3 June 2023 + When {{'(convention)' if order.has_early or order.has_late else ''}}? + 30 May → 3 June 2023 + {% if order.has_early or order.has_late %} + + When (check-in)? + + {{('29' if order.has_early else '30')|safe}} May → {{('4' if order.has_late else '3')|safe}} June 2023 + {% if order.has_early %} + EARLY + {% endif %} + {% if order.has_late %} + LATE
+ {% endif %} + + + {% endif %} Your ticket + {% if order.sponsorship %} + + You are a {{'super' if order.sponsorship == 'super' else ''}}sponsor! +
+ {% endif %} Show Check-in Barcode ({{order.code}}) {% if order.status == 'paid' and order.room_confirmed %}