aboutsummaryrefslogtreecommitdiff
path: root/plugins/caldav/public
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-02-25 19:24:35 +0100
committerSimon Ser <contact@emersion.fr>2020-02-25 19:24:35 +0100
commit4bb0ded2d91a4d68753d5bf730b16f0a5db206b6 (patch)
treec82062e1d5dcda1ba9527ec7a41b4500a9d6f060 /plugins/caldav/public
parent6c36ab6de2216812ad59aa7cc8c8021c3a976b6f (diff)
downloadalps-4bb0ded2d91a4d68753d5bf730b16f0a5db206b6.tar.gz
alps-4bb0ded2d91a4d68753d5bf730b16f0a5db206b6.zip
plugins/caldav: update go-webdav
Diffstat (limited to 'plugins/caldav/public')
-rw-r--r--plugins/caldav/public/calendar.html4
-rw-r--r--plugins/caldav/public/event.html8
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/caldav/public/calendar.html b/plugins/caldav/public/calendar.html
index 1855f4f..6715258 100644
--- a/plugins/caldav/public/calendar.html
+++ b/plugins/caldav/public/calendar.html
@@ -14,8 +14,8 @@
{{range .Events}}
{{$event := index .Data.Events 0}}
<li>
- <a href="/calendar/{{$event.UID | pathescape}}">{{$event.Summary}}</a>
- ({{$event.StartDate | formatdate}} — {{$event.EndDate | formatdate}})
+ <a href="/calendar/{{$event.Props.Text "UID" | pathescape}}">{{$event.Props.Text "SUMMARY"}}</a>
+ ({{$event.DateTimeStart nil | formatdate}} — {{$event.DateTimeEnd nil | formatdate}})
</li>
{{end}}
</ul>
diff --git a/plugins/caldav/public/event.html b/plugins/caldav/public/event.html
index 93f4ccf..8c88833 100644
--- a/plugins/caldav/public/event.html
+++ b/plugins/caldav/public/event.html
@@ -8,13 +8,13 @@
{{$event := index .Event.Data.Events 0}}
-<h2>Event: {{$event.Summary}}</h2>
+<h2>Event: {{$event.Props.Text "SUMMARY"}}</h2>
<ul>
- <li><strong>Start date</strong>: {{$event.StartDate | formatdate}}</li>
- <li><strong>End date</strong>: {{$event.EndDate | formatdate}}</li>
+ <li><strong>Start date</strong>: {{$event.DateTimeStart nil | formatdate}}</li>
+ <li><strong>End date</strong>: {{$event.DateTimeEnd nil | formatdate}}</li>
</ul>
-<pre>{{$event.Description}}</pre>
+<pre>{{$event.Props.Text "DESCRIPTION"}}</pre>
{{template "foot.html"}}