HTML · 1307 bytes Raw Blame History
1 {{ define "repo-subnav" -}}
2 <nav class="shithub-repo-subnav" aria-label="Repository sections">
3 <a href="/{{ .Owner }}/{{ .Repo.Name }}" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "code" }} is-active{{ end }}">
4 {{ octicon "directory" }} Code
5 </a>
6 <a href="/{{ .Owner }}/{{ .Repo.Name }}/issues" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "issues" }} is-active{{ end }}">
7 {{ octicon "alert" }} Issues
8 {{ with .RepoCounts.Issues }}<span class="shithub-tab-count">{{ . }}</span>{{ end }}
9 </a>
10 <a href="/{{ .Owner }}/{{ .Repo.Name }}/pulls" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "pulls" }} is-active{{ end }}">
11 {{ octicon "submodule" }} Pull requests
12 {{ with .RepoCounts.Pulls }}<span class="shithub-tab-count">{{ . }}</span>{{ end }}
13 </a>
14 <a href="/{{ .Owner }}/{{ .Repo.Name }}/forks" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "forks" }} is-active{{ end }}">
15 {{ octicon "submodule" }} Forks
16 {{ with .RepoCounts.Forks }}<span class="shithub-tab-count">{{ . }}</span>{{ end }}
17 </a>
18 {{ if .CanSettings }}
19 <a href="/{{ .Owner }}/{{ .Repo.Name }}/settings" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "settings" }} is-active{{ end }}">
20 {{ octicon "directory" }} Settings
21 </a>
22 {{ end }}
23 </nav>
24 {{- end }}