26 lines
596 B
HTML
26 lines
596 B
HTML
{{ define "file" }}
|
|
<html>
|
|
{{ template "head" . }}
|
|
<title>{{.name }} — {{ .path }}</title>
|
|
|
|
{{ template "repoheader" . }}
|
|
<body>
|
|
{{ template "nav" . }}
|
|
<main>
|
|
<p>{{ .path }} (<a href="{{ .raw }}">raw</a>)</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 }}
|