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 <table class="file-wrapper">
12 <tbody><tr>
13 <td class="line-numbers">
14 <pre>
15 {{- range .linecount }}
16<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
17 {{- end -}}
18 </pre>
19 </td>
20 <td class="file-content">
21 <pre>
22 {{- .content -}}
23 </pre>
24 </td>
25 </tbody></tr>
26 </table>
27 </main>
28 </body>
29</html>
30{{ end }}