From 1ca444d3e659b61317ea62588930a0a5156934c5 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 20 Apr 2024 22:58:30 -0600 Subject: imworkingon: Initial go at daily statuses --- cmd/generate/imworkingon.html.tmpl | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'cmd/generate/imworkingon.html.tmpl') diff --git a/cmd/generate/imworkingon.html.tmpl b/cmd/generate/imworkingon.html.tmpl index fb24ac6..1be3960 100644 --- a/cmd/generate/imworkingon.html.tmpl +++ b/cmd/generate/imworkingon.html.tmpl @@ -81,6 +81,78 @@ {{- end }} +
+

Daily statuses

+

Posted daily on Mastodon.

+ +
Calendar view + + + + + + + + + + + + + + + + {{- $cal := .StandupCalendar }} + {{- $curSunMonth := 0 }} + {{- $curSatMonth := 0 }} + {{- range $i, $week := reverse .StandupCalendar }} + + {{- $sun := (index $week time.Sunday) }} + {{- if not $sun.Day }} + + {{- else if ne $sun.Month $curSunMonth }} + + {{- $curSunMonth = $sun.Month }} + {{- end }} + {{- range $day := $week }} + {{- if not $day.Day }} + + {{- else if not $day.Data }} + + {{- else }} + + {{- end }} + + {{- end }} + {{- $sat := (index $week time.Saturday) }} + {{- if not $sat.Day }} + + {{- else if ne $sat.Month $curSatMonth }} + + {{- $curSatMonth = $sat.Month }} + {{- end }} + {{- end }} + + +
SuMTuWThFS
+ {{ $sun.Month }} {{ $sun.Year }} + + {{ $day.Day }} + + + {{ $day.Day }} + + + {{ $sat.Month }} {{ $sat.Year }} +
+
+ + {{- range $status := .Standups }} + + {{- end }} +