1cf95af41e
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.
28 lines
444 B
HTML
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"}}
|