{{ define "pager" }} {{ if .HasPages }} {{ end }} {{ end }} {{ define "item" }}
{{ if $.User.Is $.Twt.Twter.URL }} {{ else }} {{ if isLocalURL $.Twt.Twter.URL }} {{ else }} {{ if $.Twt.Twter.Avatar }} {{ else }} {{ end }} {{ end }} {{ end }}
{{ if $.User.Is $.Twt.Twter.URL }} me {{ else }} {{ if isLocalURL $.Twt.Twter.URL }} {{ $.Twt.Twter.Nick }} {{ else }} {{ $.Twt.Twter.Nick }} @{{ $.Twt.Twter.URL | hostnameFromURL }} {{ end }} {{ end }}
 ({{ $.Twt.Created | time }}) {{ if $.Authenticated }}   {{ end }}
{{ $.Twt.Text | formatTwt }}

{{ end }} {{ define "results" }}
{{ template "pager" $.Pager }} {{ range $idx, $item := $.Results }} {{ template "item" (dict "Item" $item) }} {{ else }} No search results found. {{ end }} {{ template "pager" $.Pager }}
{{ end }}