forked from nutomic/joinpeertube
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
|
{{ $baseurl := .Site.BaseURL }}
|
||
|
{{ $pag := .Paginator }}
|
||
|
{{ if gt $pag.TotalPages 1 }}
|
||
|
<li {{ if not $pag.HasPrev }} class="disabled" {{ end }}>
|
||
|
<a aria-label="First" href="{{ $baseurl }}{{ $pag.First.URL }}">
|
||
|
<span aria-hidden="true">««</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
<li {{ if not $pag.HasPrev }} class="disabled" {{ end }}>
|
||
|
<a aria-label="Previous" href="{{ if $pag.HasPrev }}{{ $baseurl }}{{ $pag.Prev.URL }}{{ else }}#{{ end }}">
|
||
|
<span aria-hidden="true">«</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
{{ range $pag.Pagers }}
|
||
|
<li {{ if eq . $pag }} class="active" {{ end }}>
|
||
|
<a href="{{ $baseurl }}{{ .URL }}">
|
||
|
{{ .PageNumber }}
|
||
|
</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
|
||
|
<li {{ if not $pag.HasNext }} class="disabled" {{ end }}>
|
||
|
<a aria-label="Next" href="{{ if $pag.HasNext }}{{ $baseurl }}{{ $pag.Next.URL }}{{ else }}#{{ end }}">
|
||
|
<span aria-hidden="true">»</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li {{ if not $pag.HasNext }} class="disabled" {{ end }}>
|
||
|
<a aria-label="Last" href="{{ $baseurl }}{{ $pag.Last.URL }}">
|
||
|
<span aria-hidden="true">»»</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
{{ end }}
|