all repos — legit @ 7fe98772b079cca83b854e8f8a6be5dc55c10483

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      <div class="file-wrapper">
11        <div class="line-numbers">
12          {{- range .linecount }}
13<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
14          {{- end -}}
15        </div>
16        <div>
17          <span></span>
18          <pre>
19            {{- .content -}}
20          </pre>
21        </div>
22    </main>
23  </body>
24</html>
25{{ end }}