miniflux/internal/template/templates/common/pagination.html

20 lines
892 B
HTML
Raw Normal View History

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