1<div class="nav-repository">
2 <nav class="repo-nav">
3 <a href="/r/{{.Repo.Name}}?ref={{.CurrentRef}}">Commits</a>
4 <a href="/r/{{.Repo.Name}}/files/?ref={{.CurrentRef}}">Files</a>
5 <a href="/r/{{.Repo.Name}}/markers?ref={{.CurrentRef}}">Markers</a>
6 {{if .ReadmeName}}
7 <a href="/r/{{.Repo.Name}}/readme?ref={{.CurrentRef}}">Readme</a>
8 {{end}}
9 {{if .LicenseName}}
10 <a href="/r/{{.Repo.Name}}/license?ref={{.CurrentRef}}">License</a>
11 {{end}}
12 <a href="/r/{{.Repo.Name}}/archive/?ref={{.CurrentRef}}">Download</a>
13 </nav>
14
15 <nav class="controls">
16 <select id="branch-select" onchange="window.location.href='/r/{{.Repo.Name}}?ref=' + this.value">
17 <option disabled>-- Select Branch --</option>
18 {{range .Branches}}
19 <option value="{{.}}" {{if eq . $.CurrentRef}}selected{{end}}>{{.}}</option>
20 {{end}}
21 </select>
22 {{if .Tags}}
23 <select id="tag-select" onchange="window.location.href='/r/{{.Repo.Name}}?ref=' + this.value">
24 <option disabled>-- Select Tag --</option>
25 {{range .Tags}}
26 <option value="{{.}}" {{if eq . $.CurrentRef}}selected{{end}}>{{.}}</option>
27 {{end}}
28 </select>
29 {{end}}
30 </nav>
31</div>