1
0
Fork 0
miniflux/template/html/common/pagination.html

20 lines
794 B
HTML
Raw Normal View History

2017-11-20 00:10:04 -05:00
{{ define "pagination" }}
<div class="pagination">
<div class="pagination-prev">
{{ if .ShowPrev }}
<a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ if .SearchQuery }}&amp;q={{ .SearchQuery }}{{ end }}{{ else }}{{ if .SearchQuery }}?q={{ .SearchQuery }}{{ end }}{{ end }}" data-page="previous">{{ t "pagination.previous" }}</a>
2017-11-20 00:10:04 -05:00
{{ else }}
{{ t "pagination.previous" }}
2017-11-20 00:10:04 -05:00
{{ end }}
</div>
<div class="pagination-next">
{{ if .ShowNext }}
<a href="{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&amp;q={{ .SearchQuery }}{{ end }}" data-page="next">{{ t "pagination.next" }}</a>
2017-11-20 00:10:04 -05:00
{{ else }}
{{ t "pagination.next" }}
2017-11-20 00:10:04 -05:00
{{ end }}
</div>
</div>
{{ end }}