alps/plugins/caldav/public/calendar.html

31 lines
626 B
HTML

{{template "head.html"}}
<h1>koushin</h1>
<p>
<a href="/">Back</a>
</p>
<h2>Calendar: {{.Calendar.Name}}</h2>
<h3>{{.Time.Format "January 2006"}}</h3>
{{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}}
<p>
<a href="/calendar?month={{.PrevPage}}">Previous</a>
· <a href="/calendar?month={{.NextPage}}">Next</a>
</p>
{{template "foot.html"}}