summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/file.html30
1 files changed, 18 insertions, 12 deletions
diff --git a/templates/file.html b/templates/file.html
index 8898786..49bc19b 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -1,23 +1,29 @@
{{ define "file" }}
<html>
-{{ template "head" . }}
+ {{ template "head" . }}
{{ template "repoheader" . }}
<body>
{{ template "nav" . }}
<main>
<p>{{ .path }}</p>
<div class="file-wrapper">
- <div class="line-numbers">
- {{- range .linecount }}
-<a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
- {{- end -}}
- </div>
- <div class="file-content">
- <span></span>
- <pre>
- {{- .content -}}
- </pre>
- </div>
+ <table >
+ <tbody><tr>
+ <td class="line-numbers">
+ <pre>
+ {{- range .linecount }}
+ <a id="L{{ . }}" href="#L{{ . }}">{{ . }}</a>
+ {{- end -}}
+ </pre>
+ </td>
+ <td class="file-content">
+ <pre>
+ {{- .content -}}
+ </pre>
+ </td>
+ </tbody></tr>
+ </table>
+ </div>
</main>
</body>
</html>