all repos — legit @ 5dc6516d74885ce3f03db9dd997da2e11517b8f7

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