aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-22 20:15:05 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-22 20:15:05 +0100
commit3dc0952e7e1fcce2dcc777044ca030378af46a00 (patch)
treeef91cfe4cbf8e2d100ab5bd8fedff0577935531d /module/entry-points
parentAdd previous-week-start procedure. (diff)
downloadcalp-3dc0952e7e1fcce2dcc777044ca030378af46a00.tar.gz
calp-3dc0952e7e1fcce2dcc777044ca030378af46a00.tar.xz
HTML weekly proper week-start.
Diffstat (limited to 'module/entry-points')
-rw-r--r--module/entry-points/html.scm9
1 files changed, 7 insertions, 2 deletions
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