kama/templates/home.tmpl

26 lines
541 B
Cheetah

{{template "header.tmpl" .}}
<h1>BLand Home Page</h1>
<p>Welcome to the <pre>apcore</pre> example application, BLand!</p>
{{if gt (len .Other) 0}}
<p>Here are the latest public notes:</p>
<div>
<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>
</div>
{{else}}
<p>There are no public notes to see</p>
{{end}}
{{template "footer.tmpl" .}}