HTML · 1995 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 "code" }} Code
5 </a>
6 <a href="/{{ .Owner }}/{{ .Repo.Name }}/issues" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "issues" }} is-active{{ end }}">
7 {{ octicon "issue-opened" }} Issues
8 {{ with .RepoCounts }}{{ with .Issues }}<span class="shithub-tab-count">{{ . }}</span>{{ end }}{{ end }}
9 </a>
10 <a href="/{{ .Owner }}/{{ .Repo.Name }}/pulls" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "pulls" }} is-active{{ end }}">
11 {{ octicon "git-pull-request" }} Pull requests
12 {{ with .RepoCounts }}{{ with .Pulls }}<span class="shithub-tab-count">{{ . }}</span>{{ end }}{{ end }}
13 </a>
14 <a href="/{{ .Owner }}/{{ .Repo.Name }}/actions" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "actions" }} is-active{{ end }}">
15 {{ octicon "play" }} Actions
16 </a>
17 <a href="/{{ .Owner }}/{{ .Repo.Name }}/projects" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "projects" }} is-active{{ end }}">
18 {{ octicon "table" }} Projects
19 </a>
20 <a href="/{{ .Owner }}/{{ .Repo.Name }}/wiki" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "wiki" }} is-active{{ end }}">
21 {{ octicon "book" }} Wiki
22 </a>
23 <a href="/{{ .Owner }}/{{ .Repo.Name }}/security" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "security" }} is-active{{ end }}">
24 {{ octicon "shield-check" }} Security and quality
25 </a>
26 <a href="/{{ .Owner }}/{{ .Repo.Name }}/pulse" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "insights" }} is-active{{ end }}">
27 {{ octicon "pulse" }} Insights
28 </a>
29 {{ if .CanSettings }}
30 <a href="/{{ .Owner }}/{{ .Repo.Name }}/settings" class="shithub-repo-subnav-tab{{ if eq .ActiveSubnav "settings" }} is-active{{ end }}">
31 {{ octicon "gear" }} Settings
32 </a>
33 {{ end }}
34 </nav>
35 {{- end }}