arnaucube
arnaucube/gitviewPublic Self-hosted repository
gitview/templates/refs.html
templates/refs.htmlRaw
1{{ define "refs" }}<!doctype html><html lang="en">{{ template "head" . }}<body>{{ template "repoheader" . }}<main class="repo-main"><h1>Branches & tags</h1><h2 class="subheading">{{ template "i-branch" }}Branches <span class="count">{{ len .branches }}</span></h2><div class="panel">{{ range .branches }}<div class="ref-row"><a href="/{{ $.name }}/tree/{{ .Name.Short }}/">{{ template "i-branch" }}<strong>{{ .Name.Short }}</strong></a><div><a class="button" href="/{{ $.name }}/log/{{ .Name.Short }}">History</a><a class="button" href="/{{ $.name }}/archive/{{ .Name.Short }}.tar.gz">{{ template "i-download" }}Source</a></div></div>{{ end }}</div><h2 class="subheading">{{ template "i-tag" }}Tags <span class="count">{{ len .tags }}</span></h2><div class="panel">{{ range .tags }}<div class="ref-row"><div><a href="/{{ $.name }}/tree/{{ .Name }}/"><strong>{{ .Name }}</strong></a>{{ if .Message }}<p>{{ .Message }}</p>{{ end }}</div><a class="button" href="/{{ $.name }}/archive/{{ .Name }}.tar.gz">{{ template "i-download" }}Source</a></div>{{ else }}<div class="empty-state"><h3>No tags yet</h3><p>Tags will appear here when they are added to the repository.</p></div>{{ end }}</div>{{ template "footer" . }}</main></body></html>{{ end }}