all repos — legit @ 1574bbecb5b2856b2018d064a32d2e7f484a58b1

web frontend for git

templates/file.html (view raw)

 1{{ define "file" }}
 2<html>
 3{{ template "head" . }}
 4  {{ template "repoheader" . }}
 5  <body>
 6    {{ template "nav" . }}
 7    <main>
 8      <p>{{ .path }}</p>
 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 class="file-content">
16          <span></span>
17          <pre>
18            {{- .content -}}
19          </pre>
20        </div>
21    </main>
22  </body>
23</html>
24{{ end }}