kama/templates/list_notes.tmpl

22 lines
379 B
Cheetah
Raw Normal View History

2021-04-27 05:39:57 +00:00
{{template "header.tmpl" .}}
<h1>Notes</h1>
{{if gt (len .Other) 0}}
<table>
<tr>
<th>ID</th>
<th>Summary</th>
<th>Content</th>
</tr>
{{range $i, $n := .Other}}
<tr>
<td>{{$i}} <a href="{{$n.id}}">{{$n.id}}</a></td>
<td>{{$n.summary}}</td>
<td>{{$n.content}}</td>
</tr>
{{end}}
</table>
{{else}}
<p>No notes to see</p>
{{end}}
{{template "footer.tmpl" .}}