miniflux/template/html/common/pagination.html

20 lines
750 B
HTML
Raw Normal View History

2017-11-20 06:10:04 +01:00
{{ define "pagination" }}
<div class="pagination">
<div class="pagination-prev">
{{ if .ShowPrev }}
2018-07-05 07:05:19 +02:00
<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 "Previous" }}</a>
2017-11-20 06:10:04 +01:00
{{ else }}
{{ t "Previous" }}
{{ end }}
</div>
<div class="pagination-next">
{{ if .ShowNext }}
2018-07-05 07:05:19 +02:00
<a href="{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&amp;q={{ .SearchQuery }}{{ end }}" data-page="next">{{ t "Next" }}</a>
2017-11-20 06:10:04 +01:00
{{ else }}
{{ t "Next" }}
{{ end }}
</div>
</div>
{{ end }}