Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pagination.html « extra « partials « layouts - github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2fa4a825b4c1a2a8f08e9a8045764bbbccb36212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ if .IsNode }}
    <ul class="pagination">
        {{ with .Paginator }}
            <li class="{{ if .HasPrev }}waves-effect{{ else }}disabled{{ end }}">
                <a href="{{ if .HasPrev }}{{ .Prev.URL }}{{ else }}#!{{ end }}">
                    <i class="fa fa-angle-left"></i>
                </a>
            </li>
            {{ $currentPageNumber := .PageNumber }}
            {{ range .Pagers }}
                <li class="{{ if eq $currentPageNumber .PageNumber }}active{{ else }}waves-effect{{ end }}">
                    <a href="{{ .URL }}">{{ .PageNumber }}</a>
                </li>
            {{ end }}
            <li class="{{ if .HasNext }}waves-effect{{ else }}disabled{{ end }}">
                <a href="{{ if .HasNext }}{{ .Next.URL }}{{ else }}#!{{ end }}">
                    <i class="fa fa-angle-right"></i>
                </a>
            </li>
        {{ end }}
    </ul>
{{ end }}