aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav/public/calendar.html
blob: c23c555e521d31200389de7a189e668726ccbfda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{template "head.html" .}}

<h1>alps</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.Path | pathescape}}">{{$event.Props.Text "SUMMARY"}}</a>
        ({{$event.DateTimeStart nil | formatdate}}{{$event.DateTimeEnd nil | 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"}}