aboutsummaryrefslogtreecommitdiff
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
parent1233c89b66f4e4a8a8aa219921af145ea9996dc9 (diff)
Format tables
-rw-r--r--assets/css/style.css9
-rw-r--r--tmpl/index9
2 files changed, 16 insertions, 2 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index f3222e3..6b34512 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -42,3 +42,12 @@ header p {
font-weight: bold;
color: #F50;
}
+td {
+ padding: 0 1em;
+}
+tr:nth-child(even) {
+ background: #FFF;
+}
+tr:nth-child(odd) {
+ background: #EEE;
+}
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}}