summaryrefslogtreecommitdiffstats
path: root/templates/file.html
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 10:42:18 +0530
commite4d12fc667c9830dd5f08f827b2a70adff58a09b (patch)
treec052c87caf09ddc785c1a86454aeee00dcfcf774 /templates/file.html
parent3e6a720154b70a9882af14399548e494b1d0089f (diff)
downloadlegit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.gz
legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.tar.bz2
legit-e4d12fc667c9830dd5f08f827b2a70adff58a09b.zip
templates: unified repo-header
Diffstat (limited to 'templates/file.html')
-rw-r--r--templates/file.html25
1 files changed, 13 insertions, 12 deletions
diff --git a/templates/file.html b/templates/file.html
index ed658e3..4d606cc 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -2,21 +2,22 @@
<html>
{{ template "head" . }}
- <header>
- <h1>{{ .meta.Title }}</h1>
- <h2>{{ .meta.Description }}</h2>
- </header>
+ {{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
- <pre>
-{{ range .linecount }}
-<a id="#L{{ . }}" href="#{{ . }}">{{ . }}</a>
-{{- end -}}
- </pre>
- <pre>
-{{ .content }}
- </pre>
+ <div class="file-wrapper">
+ <div class="line-numbers">
+ {{- range .linecount }}
+<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
+ {{- end -}}
+ </div>
+ <div>
+ <span></span>
+ <pre>
+ {{- .content -}}
+ </pre>
+ </div>
</main>
</body>
</html>