1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-26 15:41:41 +00:00
now-playing/layouts/partials/pagination.html
2019-11-28 02:55:00 +01:00

23 lines
829 B
HTML

{{ $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">
{{ if $paginator.HasPrev }}
<a class="btn btn--secondary w100" href="{{ $paginator.Prev.URL }}">Prev</a>
{{ else }}
<span class="btn btn--secondary w100 disabled">Prev</span>
{{ end }}
{{ if $paginator.HasNext }}
<a class="btn btn--secondary w100" href="{{ $paginator.Next.URL }}">Next</a>
{{ else }}
<span class="btn btn--secondary w100 disabled">Next</span>
{{ end }}
</div>
</div>
</div>
{{ end}}