all repos — legit @ 2e3c3103c48c748ccc8fa6b3607d51f112a9400f

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