Fix prev pagination

This commit is contained in:
r 2019-12-15 06:55:13 +00:00
parent e129ea922e
commit 51a4b16af5
3 changed files with 40 additions and 14 deletions

View file

@ -16,10 +16,12 @@
{{template "status.tmpl" .}}
{{end}}
{{if .HasNext}}
<a href="{{.NextLink}}"> next </a>
{{end}}
{{if .HasPrev}}
<a href="{{.PrevLink}}"> next </a>
{{end}}
<div class="pagination">
{{if .HasPrev}}
<a href="{{.PrevLink}}">prev</a>
{{end}}
{{if .HasNext}}
<a href="{{.NextLink}}">next</a>
{{end}}
</div>
{{template "footer.tmpl"}}