aboutsummaryrefslogtreecommitdiff
path: root/templates/file.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/file.html49
1 files changed, 23 insertions, 26 deletions
diff --git a/templates/file.html b/templates/file.html
index d18340a..c229611 100644
--- a/templates/file.html
+++ b/templates/file.html
@@ -1,31 +1,28 @@
{{ 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>
+ </tr>
+ </tbody>
+ <!--TODO: Why is it like this???-->
+ </table>
+ </div>
+ </main>
+ </body>
</html>
{{ end }}