summaryrefslogtreecommitdiffstats
path: root/templates/file.html
blob: ab432d386d53b3a3ffcb290bcb1d2e98f9dce46f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{ define "file" }}
<html>
{{ template "head" . }}
  <title>{{.name }} &mdash; {{ .path }}</title>

  {{ template "repoheader" . }}
  <body>
    {{ template "nav" . }}
    <main>
      <p>{{ .path }}</p>
      <div class="file-wrapper">
        <div class="line-numbers">
          {{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
          {{- end -}}
        </div>
        <div class="file-content">
          <span></span>
          <pre>
            {{- .content -}}
          </pre>
        </div>
    </main>
  </body>
</html>
{{ end }}