aboutsummaryrefslogtreecommitdiff
path: root/plugins/carddav/public/address-book.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/carddav/public/address-book.html')
-rw-r--r--plugins/carddav/public/address-book.html34
1 files changed, 34 insertions, 0 deletions
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"}}
+
+<h1>koushin</h1>
+
+<p>
+ <a href="/">Back</a>
+</p>
+
+<h2>Contacts: {{.AddressBook.Name}}</h2>
+
+<form method="get" action="">
+ <input type="search" name="query" value="{{.Query}}">
+ <input type="submit" value="Search">
+</form>
+
+{{if .AddressObjects}}
+ <ul>
+ {{range .AddressObjects}}
+ <li>
+ <a href="/contacts/{{.Card.Value "UID" | pathescape}}">
+ {{.Card.Value "FN"}}
+ </a>
+ {{$email := .Card.PreferredValue "EMAIL"}}
+ {{if $email}}
+ &lt;<a href="/compose?to={{$email}}">{{$email}}</a>&gt;
+ {{end}}
+ </li>
+ {{end}}
+ </ul>
+{{else}}
+ <p>No contact.</p>
+{{end}}
+
+{{template "foot.html"}}