all repos — legit @ 49b8b292897031c0d60777edfca11867569b2ee6

web frontend for git, written in go

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