2020-02-05 13:58:56 +00:00
|
|
|
{{template "head.html"}}
|
|
|
|
|
2020-05-13 12:07:44 +00:00
|
|
|
<h1>alps</h1>
|
2020-02-05 13:58:56 +00:00
|
|
|
|
|
|
|
<p>
|
2020-02-12 20:13:51 +00:00
|
|
|
<a href="/">Back</a> · <a href="/contacts/create">Create new contact</a>
|
2020-02-05 13:58:56 +00:00
|
|
|
</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>
|
2020-02-27 11:17:23 +00:00
|
|
|
<a href="{{.URL}}">
|
2020-02-05 13:58:56 +00:00
|
|
|
{{.Card.Value "FN"}}
|
|
|
|
</a>
|
|
|
|
{{$email := .Card.PreferredValue "EMAIL"}}
|
|
|
|
{{if $email}}
|
|
|
|
<<a href="/compose?to={{$email}}">{{$email}}</a>>
|
|
|
|
{{end}}
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
|
|
|
<p>No contact.</p>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{template "foot.html"}}
|