krz/gitbay
A CLI-first git forge.
clone: git clone https://gitbay.org/krz/gitbay.git
main: internal/web/templates/index.html · raw
1{{define "title"}}{{.Site}}{{end}}
2{{define "content"}}
3{{if .Viewer}}<p class="crumbs">logged in as {{.Viewer}} · <a href="/new">new repository</a> ·
4<form method="post" action="/logout" style="display:inline"><button type="submit">logout</button></form></p>{{end}}
5<h1>repositories</h1>
6<table>
7{{range .Repos}}<tr><td><a href="/{{.OwnerName}}">{{.OwnerName}}</a>/<a href="/{{.OwnerName}}/{{.Name}}">{{.Name}}</a></td><td class="desc">{{.Desc}}</td><td>{{.DefaultBranch}}</td></tr>
8{{else}}<tr><td>no public repositories</td></tr>{{end}}
9</table>
10{{if .Mine}}<h2>your private repositories</h2>
11<table>
12{{range .Mine}}<tr><td><a href="/{{.OwnerName}}/{{.Name}}">{{.OwnerName}}/{{.Name}}</a></td><td class="desc">{{.Desc}}</td><td>{{.Visibility}}</td></tr>
13{{end}}
14</table>{{end}}
15{{end}}