legit/templates/file.html

27 lines
565 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
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>
2022-12-18 05:12:18 +00:00
<div class="file-wrapper">
<div class="line-numbers">
{{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
{{- end -}}
</div>
<div class="file-content">
2022-12-18 05:12:18 +00:00
<span></span>
<pre>
{{- .content -}}
</pre>
</div>
2022-12-11 08:48:39 +00:00
</main>
</body>
</html>
{{ end }}