diff options
author | Simon Ser <contact@emersion.fr> | 2020-02-05 18:08:00 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-05 18:14:26 +0100 |
commit | 5b78cdc104961f8cbd870513dee75dd823c6e4c6 (patch) | |
tree | afcda34b3fb5066bddce1d73bc861d5344bf848f /plugins/caldav/public | |
parent | 1bd930f0438ebce5fd0e27aca0f5d5e1c5bcc750 (diff) | |
download | alps-5b78cdc104961f8cbd870513dee75dd823c6e4c6.tar.gz alps-5b78cdc104961f8cbd870513dee75dd823c6e4c6.zip |
plugins/caldav: new plugin
For now it can only list events for the current month.
References: https://todo.sr.ht/~sircmpwn/koushin/60
Diffstat (limited to 'plugins/caldav/public')
-rw-r--r-- | plugins/caldav/public/calendar.html | 25 |
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"}} |