alps/plugins/caldav/public/calendar.html
Simon Ser 5b78cdc104
plugins/caldav: new plugin
For now it can only list events for the current month.

References: https://todo.sr.ht/~sircmpwn/koushin/60
2020-02-05 18:14:26 +01:00

25 lines
466 B
HTML

{{template "head.html"}}
<h1>koushin</h1>
<p>
<a href="/">Back</a>
</p>
<h2>Calendar: {{.Calendar.Name}}</h2>
{{if .Events}}
<ul>
{{range .Events}}
{{$event := index .Data.Events 0}}
<li>
<a href="/calendar/{{$event.UID | pathescape}}">{{$event.Summary}}</a>
({{$event.StartDate | formatdate}} — {{$event.EndDate | formatdate}})
</li>
{{end}}
</ul>
{{else}}
<p>No events.</p>
{{end}}
{{template "foot.html"}}