pull/72/head
Akhil Gupta 4 years ago
parent cb45573770
commit 1c19b89df3

@ -188,16 +188,16 @@
<div class="row">
<div class="columns twelve" style="text-align: center">
{{if .filter.PreviousPage }}
{{if .previousPage }}
<a
href="?page=1&downloadedOnly={{.downloadedOnly}}"
href="?page=1"
class="button"
>First</a
>
{{end}}
{{if .filter.PreviousPage }}
{{if .previousPage }}
<a
href="?page={{.filter.PreviousPage}}&downloadedOnly={{.downloadedOnly}}"
href="?page={{.previousPage}}"
class="button"
>Last</a
>
@ -205,22 +205,22 @@
<select name="page" id="pageDdl">
{{ $page:=.page }}
{{range $y := intRange 1 .filter.TotalPages}}
{{range $y := intRange 1 .totalPages}}
<option {{if eq $page $y }} selected="selected" {{end}}}>{{$y}}</option>
{{end}}
</select>
{{if .filter.NextPage }}
{{if .nextPage }}
<a
href="?page={{.filter.NextPage}}&downloadedOnly={{.downloadedOnly}}"
href="?page={{.nextPage}}"
class="button"
>Next</a
>
{{end}}
{{if gt .filter.TotalPages .page }}
{{if gt .totalPages .page }}
<a
href="?page={{.filter.TotalPages}}&downloadedOnly={{.downloadedOnly}}"
href="?page={{.totalPages}}"
class="button"
>Last</a
>

Loading…
Cancel
Save