From 5364221dd4fbd4cf77e5c1f8e3ff52b6f86f5fae Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 14 Feb 2020 15:30:56 +0100 Subject: themes/sourcehut: add CalDAV views --- themes/sourcehut/calendar.html | 53 ++++++++++++++++++++++++++++++++++++++++++ themes/sourcehut/event.html | 37 +++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 themes/sourcehut/calendar.html create mode 100644 themes/sourcehut/event.html (limited to 'themes/sourcehut') diff --git a/themes/sourcehut/calendar.html b/themes/sourcehut/calendar.html new file mode 100644 index 0000000..987e716 --- /dev/null +++ b/themes/sourcehut/calendar.html @@ -0,0 +1,53 @@ +{{template "head.html"}} +{{template "nav.html" .Global}} + +
+
+
+

{{.Time.Format "January 2006"}}

+ +
+
+
+
+
+
+ +
+
+ {{if .Events}} + + {{else}} +

No events.

+ {{end}} + +

+ Previous month + · Next month +

+
+
+
+ +{{template "foot.html"}} diff --git a/themes/sourcehut/event.html b/themes/sourcehut/event.html new file mode 100644 index 0000000..6290742 --- /dev/null +++ b/themes/sourcehut/event.html @@ -0,0 +1,37 @@ +{{template "head.html"}} +{{template "nav.html" .Global}} + +{{$event := index .Event.Data.Events 0}} + +
+
+
+

{{$event.Summary}}

+ +
+
+
+ +
+ + +
{{$event.Description}}
+
+ +{{template "foot.html"}} -- cgit v1.2.3