mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 15:07:17 +03:00
20 lines
922 B
HTML
20 lines
922 B
HTML
{{ $pag := $.Paginator }}
|
|
{{ if gt $pag.TotalPages 1 }}
|
|
<ul class="pagination">
|
|
<span class="page-item page-prev">
|
|
{{ if $pag.HasPrev }}
|
|
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a>
|
|
{{ else }}
|
|
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
|
|
{{ end }}
|
|
</span>
|
|
<span class="page-item page-next" style="float: right">
|
|
{{ if $pag.HasNext }}
|
|
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
|
|
{{ else }}
|
|
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a>
|
|
{{ end }}
|
|
</span>
|
|
</ul>
|
|
{{ end }}
|