mirror of
https://github.com/miniflux/v2.git
synced 2024-10-06 17:16:51 +02:00
20 lines
579 B
HTML
20 lines
579 B
HTML
{{ define "pagination" }}
|
|
<div class="pagination">
|
|
<div class="pagination-prev">
|
|
{{ if .ShowPrev }}
|
|
<a href="{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ end }}" data-page="previous">{{ t "Previous" }}</a>
|
|
{{ else }}
|
|
{{ t "Previous" }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div class="pagination-next">
|
|
{{ if .ShowNext }}
|
|
<a href="{{ .Route }}?offset={{ .NextOffset }}" data-page="next">{{ t "Next" }}</a>
|
|
{{ else }}
|
|
{{ t "Next" }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|