semestergen/tpl/assignments.adoc.tpl

18 lines
578 B
Smarty
Raw Permalink Normal View History

2019-12-12 16:33:12 +00:00
{{- range $key, $value := .Assignments}}
{{- range $value.Links}}
:{{.Slug}}: link:{{.URL}}
{{- end}}
{{- end}}
[%header,format=psv,cols="^20h,^20h,<60d"]
|===
| Given | Due Date | Assignment
{{range $key, $value := .Assignments}}
| {{getDate $value.Assigned}} | {{getDate $value.Due}} | {{$value.Title}}: {{range $idx, $el := $value.Links}}{{if $idx}}; {{end}}{{$el.Slug | printf "{%s}"}}[{{$el.Title}}]{{end}}
{{end}}
|===
2020-01-31 10:20:12 +00:00
{{if .ICalLink }}
These events are in a public calendar you may add to your own calendar software: {{.ICalLink}}[Published iCal Link]
{{end}}