From b03d1cd262243f08bf3e6a864dfed25d86e19b60 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 13 Jun 2022 14:59:36 -0500 Subject: [PATCH] retool dashboard --- teamsnap/dashboard/templates/dashboard.html | 60 ++++++++++------- teamsnap/dashboard/tests.py | 75 ++++++++++++++++++++- 2 files changed, 109 insertions(+), 26 deletions(-) diff --git a/teamsnap/dashboard/templates/dashboard.html b/teamsnap/dashboard/templates/dashboard.html index 8e0c88f..9c473af 100644 --- a/teamsnap/dashboard/templates/dashboard.html +++ b/teamsnap/dashboard/templates/dashboard.html @@ -2,18 +2,25 @@ {% block title %} {{ title }}{% endblock %} {% block page_heading %}{% endblock %} {% block content %} -

Dashboard

-
-
-
-

Upcoming Games

-
-
+
+

Dashboard

+
+
- {% for event, availability_summary in events_availabilities|slice:":4" %} -
+
+
+

Upcoming Games

+
+
+ +
+
+
+ {% for event, availability_summary in events_availabilities|slice:":5" %} +
+
@@ -34,7 +41,7 @@
{{ event.data.location_name }}
- {% endfor %} - -
+
+ {% endfor %}
-
-
-
-

Past Games

-
-
+
- {% for event in ts_events_past|slice:":4" %} -
+
+
+

Past Games

+
+
+ +
+
+
+ {% for event in ts_events_past|slice:":4" %} +
+
@@ -105,12 +116,13 @@
- {% endfor %} - -
+
+ {% endfor %}
+ +
{% endblock %} {% block inline_javascript %}