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

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

Loading…
Cancel
Save