legit/templates/file.html

31 lines
646 B
HTML
Raw Normal View History

2022-12-11 08:48:39 +00:00
{{ define "file" }}
<html>
2023-03-19 20:46:04 +00:00
{{ template "head" . }}
2022-12-18 05:12:18 +00:00
{{ template "repoheader" . }}
2022-12-11 08:48:39 +00:00
<body>
{{ template "nav" . }}
<main>
2022-12-19 12:19:32 +00:00
<p>{{ .path }}</p>
2023-02-18 08:46:43 +00:00
<div class="file-wrapper">
2023-03-19 20:46:04 +00:00
<table >
<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>
</div>
2022-12-11 08:48:39 +00:00
</main>
</body>
</html>
{{ end }}