display.html (view raw)
1<html>
2 <title>today's activities</title>
3 <meta charset="utf-8">
4 <meta name="viewport" content="width=device-width, initial-scale=1">
5 <style type="text/css">
6 body {
7 background: #f4f4f4;
8 margin: 40px auto;
9 max-width: 650px;
10 line-height: 1.6;
11 font-size: 18px;
12 font-family: sans-serif;
13 padding: 0 10px;
14 }
15
16 td, th {
17 border: 1px solid;
18 text-align: left;
19 padding: 8px;
20 }
21 </style>
22 <main>
23 <body>
24 <table>
25 <tr>
26 <th>time</th>
27 <th>activity</th>
28 <th>notes</th>
29 </tr>
30 {{ range $_, $activity := . }}
31 <tr>
32 <td>{{ .Time.Format "02 Jan, 2006 15:04:05" }}</td>
33 <td>{{ .Activity }}</td>
34 <td><em>{{ .Notes }}</em></td>
35 </tr>
36 {{ end }}
37 </table>
38 </body>
39 </main>
40</html>