all repos — legit @ d58151dbb07a5d5dd7eaf6fc9f12566898823a46

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