gitlin/views/file.html
Odyssey 0c6b23cde0 Update header, and fix raw from fileview.
Signed-off-by: Odyssey <odyssey346@disroot.org>
2022-11-30 18:32:15 +01:00

17 行
490 B
HTML

{{ template "header" .}}
<main>
{{ if .file }}
<div class="downloadParent">
<a href="/{{.fullname}}" class="downloadButton">Back to {{.fullname}}</a>
</div>
<div class="userReadme">
<h3>{{.name}}</h3>
<pre class="filePre">{{ .file}}</pre>
</div>
<div class="downloadParent">
<a href="/raw/{{.fullname}}/{{.branch}}/{{.name}}" class="downloadButton">Download</a>
</div>
{{end}}
</main>