From 3dc0952e7e1fcce2dcc777044ca030378af46a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 22 Mar 2020 20:15:05 +0100 Subject: HTML weekly proper week-start. --- module/entry-points/html.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'module/entry-points') diff --git a/module/entry-points/html.scm b/module/entry-points/html.scm index ea1b2eeb..71a68f44 100644 --- a/module/entry-points/html.scm +++ b/module/entry-points/html.scm @@ -44,8 +44,13 @@ (html-generate calendars events start end render-calendar)] [(wide) ; previously `chunked' (html-chunked-main count calendars events start (date month: 1))] - [(week) ; TOOD handle week-start - (html-chunked-main count calendars events start (date day: 7))] + [(week) + ;; TODO The small calendar is always centered on months, it might + ;; be a good idea to instead center it on the current week, meaning + ;; that the active row is always in the center + (html-chunked-main count calendars events + (previous-week-start start (week-start)) + (date day: 7))] [(table) (html-table-main count calendars events start)] [else -- cgit v1.2.3