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