aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav/public/calendar.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/caldav/public/calendar.html')
-rw-r--r--plugins/caldav/public/calendar.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/caldav/public/calendar.html b/plugins/caldav/public/calendar.html
new file mode 100644
index 0000000..6011f9e
--- /dev/null
+++ b/plugins/caldav/public/calendar.html
@@ -0,0 +1,25 @@
+{{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"}}