1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-26 17:41:40 +00:00
now-playing/layouts/partials/pagination.html

24 lines
829 B
HTML
Raw Normal View History

2019-11-28 01:05:31 +00:00
{{ $paginator := .Paginator }}
<!-- Pagination -->
{{ if gt $paginator.TotalPages 1 }}
<div class="pagination">
<div class="container">
{{ if $paginator.HasNext }}
<a class="btn btn--primary btn--big w100" href="{{ $paginator.Next.URL }}">Load moaaaar</a>
{{ end }}
<div class="pagination__side">
2019-11-27 17:06:26 +00:00
{{ if $paginator.HasPrev }}
2019-11-28 01:05:31 +00:00
<a class="btn btn--secondary w100" href="{{ $paginator.Prev.URL }}">Prev</a>
2019-11-27 17:06:26 +00:00
{{ else }}
2019-11-28 01:05:31 +00:00
<span class="btn btn--secondary w100 disabled">Prev</span>
2019-11-27 17:06:26 +00:00
{{ end }}
{{ if $paginator.HasNext }}
2019-11-28 01:05:31 +00:00
<a class="btn btn--secondary w100" href="{{ $paginator.Next.URL }}">Next</a>
{{ else }}
<span class="btn btn--secondary w100 disabled">Next</span>
2019-11-27 17:06:26 +00:00
{{ end }}
2019-11-28 01:05:31 +00:00
</div>
</div>
2019-11-27 17:06:26 +00:00
</div>
2019-11-28 01:05:31 +00:00
{{ end}}