alps/plugins/carddav/public/address-object.html
Drew DeVault 1cf95af41e
Add <meta refresh> to mailbox view
This causes the mailbox to automatically reload the page every 60
seconds, without JavaScript.

This also updates the base template data to include the full URL, and
replaces the earlier "Path" field with a pre-split array of path
components, which is more immediately useful to most templates given the
limitations of string munging with text/template primitives.
2020-05-13 16:58:48 +02:00

28 lines
444 B
HTML

{{template "head.html" .}}
<h1>alps</h1>
<p>
<a href="/contacts">Back</a>
</p>
{{$fn := .AddressObject.Card.Value "FN"}}
<h2>Contact: {{$fn}}</h2>
<p>
<a href="{{.AddressObject.URL}}/edit">
Edit
</a>
</p>
<ul>
<li><strong>Name</strong>: {{$fn}}</li>
{{range .AddressObject.Card.Values "EMAIL"}}
<li><strong>E-mail</strong>:
<a href="/compose?to={{.}}">{{.}}</a>
</li>
{{end}}
</ul>
{{template "foot.html"}}