aboutsummaryrefslogtreecommitdiff
path: root/plugins/carddav/public/address-book.html
blob: f5215648560db1cf6a75d3135454d8305c6f53d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"}}