aboutsummaryrefslogtreecommitdiff
path: root/templates/file.html
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
commit61fcfac541fe2271c052771b1c33b7511efb75bb (patch)
tree70b4eb7fdf5b2d7bb17c09c9a5060b2ad79813b6 /templates/file.html
parentAdd myself to LICENSE (diff)
downloadlegitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.tar.gz
legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.tar.zst
legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.zip
Indent the HTML with tabs
Diffstat (limited to '')
-rw-r--r--templates/file.html46
1 files changed, 20 insertions, 26 deletions
diff --git a/templates/file.html b/templates/file.html
index d18340a..a40f071 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -1,31 +1,25 @@
{{ define "file" }}
<!DOCTYPE html>
<html>
- {{ template "head" . }}
- {{ template "repoheader" . }}
- <body>
- {{ template "nav" . }}
- <main>
- <p>{{ .path }} (<a style="color: gray" href="?raw=true">view raw</a>)</p>
- <div class="file-wrapper">
- <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>
+ {{ template "head" . }}
+ {{ template "repoheader" . }}
+ <body>
+ {{ template "nav" . }}
+ <main>
+ <p>{{ .path }} (<a style="color: gray" href="?raw=true">view raw</a>)</p>
+ <div class="file-wrapper">
+ <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>
{{ end }}