summaryrefslogtreecommitdiffstats
path: root/templates/file.html
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2023-02-18 14:16:43 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2023-02-18 14:17:47 +0530
commit1574bbecb5b2856b2018d064a32d2e7f484a58b1 (patch)
tree0d951885ad44a3df2d0ebeaf99eac2c47ca72c04 /templates/file.html
parentd5a33e9150da61d95ad3ae06f6754a6dd101124a (diff)
downloadlegit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.gz
legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.bz2
legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.zip
cleaner titles
by nilix
Diffstat (limited to 'templates/file.html')
-rw-r--r--templates/file.html22
1 files changed, 8 insertions, 14 deletions
diff --git a/templates/file.html b/templates/file.html
index 82a3384..8898786 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -1,29 +1,23 @@
{{ define "file" }}
<html>
{{ template "head" . }}
- <title>{{.name }} &mdash; {{ .path }}</title>
-
{{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
<p>{{ .path }}</p>
- <table class="file-wrapper">
- <tbody><tr>
- <td class="line-numbers">
- <pre>
- {{- range .linecount }}
+ <div class="file-wrapper">
+ <div class="line-numbers">
+ {{- range .linecount }}
<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
- {{- end -}}
- </pre>
- </td>
- <td class="file-content">
+ {{- end -}}
+ </div>
+ <div class="file-content">
+ <span></span>
<pre>
{{- .content -}}
</pre>
- </td>
- </tbody></tr>
- </table>
+ </div>
</main>
</body>
</html>