all repos — legit @ df0962a39ebef3853cbe90b3f7b07f7d2fce96d6

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