all repos — legit @ 5ea7cae973e8329ae768c35bda41e656f974815d

web frontend for git

templates/file.html (view raw)

 1{{ define "file" }}
 2<html>
 3{{ template "head" . }}
 4
 5  {{ template "repoheader" . }}
 6  <body>
 7    {{ template "nav" . }}
 8    <main>
 9      <div class="file-wrapper">
10        <div class="line-numbers">
11          {{- range .linecount }}
12<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
13          {{- end -}}
14        </div>
15        <div>
16          <span></span>
17          <pre>
18            {{- .content -}}
19          </pre>
20        </div>
21    </main>
22  </body>
23</html>
24{{ end }}