all repos — legit @ d6b8143f569c95bda9a1e5a494affed26b058ce6

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      <p>{{ .path }}</p>
11      <div class="file-wrapper">
12        <div class="line-numbers">
13          {{- range .linecount }}
14<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
15          {{- end -}}
16        </div>
17        <div class="file-content">
18          <span></span>
19          <pre>
20            {{- .content -}}
21          </pre>
22        </div>
23    </main>
24  </body>
25</html>
26{{ end }}