1<!DOCTYPE html>
2<html>
3 <head>
4 <title>{{.Repo.Name}} - {{.Path}}</title>
5 <link rel="stylesheet" href="/static/style.css">
6 <link rel="shortcut icon" href="/static/favicon.png">
7 </head>
8 <body>
9 {{template "nav-main.html" .}}
10
11 <main>
12 {{template "nav-repository.html" .}}
13
14 <div class="breadcrumbs">
15 <span>Path:</span>
16 <a href="/r/{{.Repo.Name}}/files/?ref={{.CurrentRef}}">{{.Repo.Name}}</a>
17 {{$parts := split .Path "/"}}
18 {{$path := ""}}
19 {{range $i, $part := $parts}}
20 /
21 {{$path = join $path $part}}
22 {{if eq (add $i 1) (len $parts)}}
23 {{$part}}
24 (<a href="/r/{{$.Repo.Name}}/raw/{{$.Path}}?ref={{$.CurrentRef}}">raw</a>)
25 {{else}}
26 <a href="/r/{{$.Repo.Name}}/files/{{$path}}?ref={{$.CurrentRef}}">{{$part}}</a>
27 {{end}}
28 {{end}}
29 </div>
30
31 <div class="blob-content">
32 <div class="code-view">{{.Content}}</div>
33 </div>
34 </main>
35
36 {{template "footer.html" .}}
37 </body>
38</html>