legit/templates/file.html

32 lines
700 B
HTML
Raw Permalink Normal View History

2022-12-11 08:48:39 +00:00
{{ define "file" }}
<html>
{{ template "head" . }}
2022-12-18 05:44:38 +00:00
<title>{{.name }} &mdash; {{ .path }}</title>
2022-12-11 08:48:39 +00:00
<body>
2023-02-04 16:34:21 +00:00
{{ template "repoheader" . }}
2022-12-11 08:48:39 +00:00
{{ template "nav" . }}
<main>
<p>{{ .path }} (<a href="{{ .raw }}">raw</a>)</p>
<table class="file-wrapper">
<tbody><tr>
<td class="line-numbers">
<pre>
{{- range .linecount }}
2022-12-18 05:12:18 +00:00
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
{{- end -}}
</pre>
</td>
<td class="file-content">
2022-12-18 05:12:18 +00:00
<pre>
{{- .content -}}
</pre>
</td>
</tbody></tr>
</table>
2022-12-11 08:48:39 +00:00
</main>
2023-02-04 16:34:21 +00:00
{{ template "footer" .meta }}
2022-12-11 08:48:39 +00:00
</body>
</html>
{{ end }}