all repos — legit @ ee800624f58b26204c1f846a524ccef5a1b4e386

web frontend for git

templates/file.html (view raw)

 1{{ define "file" }}
 2<html>
 3{{ template "head" . }}
 4  <title>{{.name }} &mdash; {{ .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 }}