aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-24 11:20:10 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-24 11:20:10 +0100
commitdab14c5d1570f44071bb278bc19e7623dcba35f7 (patch)
treedac62c903b671ec6f37ec953a984c0005311273c /tmpl
parent1233c89b66f4e4a8a8aa219921af145ea9996dc9 (diff)
Format tables
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/index9
1 files changed, 7 insertions, 2 deletions
diff --git a/tmpl/index b/tmpl/index
index 7a4eba5..e69a07d 100644
--- a/tmpl/index
+++ b/tmpl/index
@@ -1,12 +1,17 @@
{{define "title"}}Index{{end}}
{{define "content"}}
<table>
+<tr>
+ <th>Page</th>
+ <th>Last changed</th>
+ <th>Size</th>
+</tr>
{{range .Pages}}
- <tr>
+<tr>
<td><a href="/view/{{.Name}}">{{.Name}}</a></td>
<td>{{.ModTime.Format "2006 Jan 2 15:04"}}</td>
<td>{{.Size}} bytes</td>
- </tf>
+</tr>
{{end}}
</table>
{{end}}