gitlin/views/file.html
Odyssey de9ab67e8c Add raw button to file view
Signed-off-by: Odyssey <odyssey346@disroot.org>
2022-12-27 15:40:12 +01:00

19 行
503 B
HTML

{{ template "header" .}}
<main>
{{ if .file }}
<style>{{ .css }}</style>
<div class="downloadParent">
<a href="/{{.fullname}}" class="button">Back to {{.fullname}}</a>
</div>
<div class="userReadme">
<div class="userContainer">
<h3>{{.name}}</h3>
<a href="/raw/{{.fullname}}/{{.branch}}/{{.name}}" class="button secondary">Raw</a>
</div>
{{ .file}}
</div>
{{end}}
</main>