all repos — legit @ 60298a69538ccdda417613a09e5acbd917bfc53a

web frontend for git, written in go

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