From 926c2370c6039af14f3294e8b7749c6537160fe9 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 17 Sep 2023 10:54:38 +0530 Subject: [PATCH] Switch from bootstrap to old-school minimal style. --- templates/base.html | 14 +++++++---- templates/index.html | 45 ++++++++++++++++++------------------ templates/search_events.html | 4 +++- 3 files changed, 36 insertions(+), 27 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5f2d87e..9d1ffc5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,9 +4,17 @@ -{% block title %}Xanadu{% endblock %} - + + +{% block title %}Xanadu{% endblock %} {% block style %} {% endblock %} @@ -16,8 +24,6 @@ {% block content %} {% endblock %} - - {% block scripts %} {% endblock %} diff --git a/templates/index.html b/templates/index.html index e994523..d0f2051 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,31 +16,32 @@ - +
+ {{ "{:,d}".format(count.conference) }} conferences
+ {{ "{:,d}".format(count.event) }} talks - + most common titles
+ {{ "{:,d}".format(count.person) }} speakers + top speakers
+
- - {% for item in items %} - - - - - - - +
+ {{ item.title }} + {{ item.start.strftime("%d %b %Y") }} +
+ {% if item.venue %} + {{ item.venue.name }} + – + {{ item.venue.city.name }}, + {{ item.venue.city.country.name }} +
+ {% endif %} + + {{ (item.end - item.start).days + 1 }} days, + {{ item.events.count() }} talks, + {{ item.people_detail.count() }} speakers
+
{% endfor %} -
- {{ item.title }} - {{ item.start.strftime("%d %b %Y") }}{{ (item.end - item.start).days + 1 }} days{{ item.events.count() }} talks{{ item.people_detail.count() }} speakers
diff --git a/templates/search_events.html b/templates/search_events.html index fd18e9a..c5c375a 100644 --- a/templates/search_events.html +++ b/templates/search_events.html @@ -22,7 +22,9 @@
  • {{ item.title }} — - {{ item.conference.title }} + {{ item.conference.title }} + — + {{ item.event_date.strftime("%d %b %Y at %H:%M") if item.event_date else "date missing" }} — {% for p in item.people %} {{ p.name }}