templates/file.html (view raw)
1{{ define "file" }}
2<html>
3{{ template "head" . }}
4 <title>{{.name }} — {{ .path }}</title>
5
6 {{ template "repoheader" . }}
7 <body>
8 {{ template "nav" . }}
9 <main>
10 <p>{{ .path }}</p>
11 <div class="file-wrapper">
12 <div class="line-numbers">
13 {{- range .linecount }}
14<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
15 {{- end -}}
16 </div>
17 <div>
18 <span></span>
19 <pre>
20 {{- .content -}}
21 </pre>
22 </div>
23 </main>
24 </body>
25</html>
26{{ end }}