1 2 3 4 5 6 7 8
{{define "content"}} <h1>~{{.Data.Owner.Name}}</h1> <p class="muted">joined {{ago .Data.Owner.Created}}</p> {{template "repolist" .Data.Repos}} {{end}} {{define "repolist"}} {{if .}}<ul class="repos">{{range .}}<li><a href="/{{.Path}}">{{.Name}}</a>{{if .Private}} <span class="tag">private</span>{{end}}{{if .Description}}<span class="desc">{{.Description}}</span>{{end}}<span class="when">{{ago .Created}}</span></li>{{end}}</ul>{{else}}<p class="muted">no repositories.</p>{{end}} {{end}}