all repos — legit @ d5a33e9150da61d95ad3ae06f6754a6dd101124a

web frontend for git, written in go

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 }}