files/user.tmpl.html
{{ define "user" }} {{ template "head" . }} {{ template "nav" . }} {{ $length := len .Data.Items }} {{ if eq $length 0 }} {{ if .LoggedIn }} <p> -> <a href="/feeds">add your first feed</a></p> {{ end }} {{ end }} <p>{{ .Username }}'s feed:</p> <ul> {{ range .Data.Items }} <a href="{{ .Link }}"> <li> {{ .Title }} <span class=puny> {{ .Link | printDomain }} </span> </li> </a> {{ end }} </ul> {{ template "tail" . }} {{ end }}