owl-blogs/render/templates/views/interaction_manager.tmpl

48 lines
923 B
Cheetah
Raw Normal View History

2024-02-24 20:21:48 +00:00
{{define "title"}}Interactions{{end}}
{{define "head"}}{{end}}
2024-02-24 18:53:49 +00:00
{{define "main"}}
<a href="/admin">&larr; Back</a>
<br>
<br>
<h2>Recent Interactions</h2>
<table role="grid">
<thead>
<tr>
<th scope="col">Entry</th>
<th scope="col">Created At</th>
</tr>
</thead>
{{ range .Interactions }}
<tr>
<td scope="row">
2024-02-24 19:11:09 +00:00
<a href="/posts/{{ .EntryID }}">{{ .EntryID }}</a>
2024-02-24 18:53:49 +00:00
</td>
<td>
2024-02-24 20:21:48 +00:00
{{ .CreatedAt.Format "2006-01-02 15:04" }}
2024-02-24 18:53:49 +00:00
</td>
</tr>
{{ end }}
</table>
<hr>
<nav class="row">
{{ if not .FirstPage }}
<div>
<a href="?page={{ .PrevPage }}">Prev</a>
</div>
{{ end }}
<div>Page {{.Page}}</div>
{{ if not .LastPage }}
<div>
<a href="?page={{ .NextPage }}">Next</a>
</div>
{{ end }}
</nav>
{{end}}