legit/templates/file.html

29 lines
651 B
HTML

{{ define "file" }}
<html>
{{ template "head" . }}
<body>
{{ template "repoheader" . }}
{{ template "nav" . }}
<main>
<p>{{ .path }} (<a href="{{ .raw }}">raw</a>)</p>
<table class="file-wrapper">
<tbody><tr>
<td class="line-numbers">
<pre>
{{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
{{- end -}}
</pre>
</td>
<td class="file-content">
<pre>
{{- .content -}}
</pre>
</td>
</tbody></tr>
</table>
</main>
{{ template "footer" .meta }}
</body>
</html>
{{ end }}