From 1bd930f0438ebce5fd0e27aca0f5d5e1c5bcc750 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 5 Feb 2020 14:58:56 +0100 Subject: plugins/carddav: add basic contacts view --- plugins/carddav/public/address-book.html | 34 ++++++++++++++++++++++++++++++ plugins/carddav/public/address-object.html | 22 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 plugins/carddav/public/address-book.html create mode 100644 plugins/carddav/public/address-object.html (limited to 'plugins/carddav/public') diff --git a/plugins/carddav/public/address-book.html b/plugins/carddav/public/address-book.html new file mode 100644 index 0000000..f521564 --- /dev/null +++ b/plugins/carddav/public/address-book.html @@ -0,0 +1,34 @@ +{{template "head.html"}} + +

koushin

+ +

+ Back +

+ +

Contacts: {{.AddressBook.Name}}

+ +
+ + +
+ +{{if .AddressObjects}} + +{{else}} +

No contact.

+{{end}} + +{{template "foot.html"}} diff --git a/plugins/carddav/public/address-object.html b/plugins/carddav/public/address-object.html new file mode 100644 index 0000000..2c96fd4 --- /dev/null +++ b/plugins/carddav/public/address-object.html @@ -0,0 +1,22 @@ +{{template "head.html"}} + +

koushin

+ +

+ Back +

+ +{{$fn := .AddressObject.Card.Value "FN"}} + +

Contact: {{$fn}}

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