~gitpocket/gitpocket

8
63d04abd18b3dda61f0429d71ade08bf45510023
mainfeed-discovery
gitpocket/web/templates/repos.tmpl -rw-r--r--1.0 KiB ViewLogBlameView rawPermalink 63d04abd18 refactor(profile): drop the feed tab from profiles and orgs 13 hours ago
1
2
3
4
5
6
7
8
9
{{define "content"}}
{{$d := .Data}}
<div class="userhead">
<h2>~{{$d.Owner.Name}}</h2>
<nav class="tabs small"><a href="/~{{$d.Owner.Name}}">about</a><a class="active" href="/~{{$d.Owner.Name}}/repos">repos{{if $d.Repos}} <span class="count">{{len $d.Repos}}</span>{{end}}</a>{{if not $d.Org}}<a href="/~{{$d.Owner.Name}}/stars">stars{{if $d.Count}} <span class="count">{{$d.Count}}</span>{{end}}</a>{{end}}</nav>
{{if $d.Member}}<a class="btn primary newrepo" href="/create{{if $d.Org}}?owner={{$d.Owner.Name}}{{end}}">New repository</a>{{end}}
</div>
{{if $d.Repos}}<div class="events">{{range $d.Repos}}<div class="event repo"><h4><a href="/{{.Path}}">{{.Name}}</a>{{if .Private}} <span class="tag">private</span>{{else if .Unlisted}} <span class="tag">unlisted</span>{{end}}</h4>{{if .Description}}<p>{{.Description}}</p>{{end}}{{if .Tags}}<p class="tags">{{range .Tags}}<a href="/search?q=tag:{{.}}">#{{.}}</a> {{end}}</p>{{end}}{{template "repometa" .}}</div>{{end}}</div>{{else}}<p class="info">No repos yet.</p>{{end}}
{{end}}