Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pagination support * full pagination support
- Loading branch information
1 parent
a4ea546
commit 951f1fe
Showing
25 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{ $pag := $.Paginator }} | ||
{{ if gt $pag.TotalPages 1 }} | ||
<div class="pagination-wrapper text-center"> | ||
<ul class="pagination"> | ||
{{ with $pag.First }} | ||
<li> | ||
<a href="{{ .URL }}" aria-label="First"><span aria-hidden="true">««</span></a> | ||
</li> | ||
{{ end }} | ||
<li | ||
{{ if not $pag.HasPrev }}class="disabled"{{ end }}> | ||
<a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous"><span aria-hidden="true">«</span></a> | ||
</li> | ||
{{ range $pag.Pagers }} | ||
<li | ||
{{ if eq . $pag }}class="active"{{ end }}><a href="{{ .URL }}">{{ .PageNumber }}</a></li> | ||
{{ end }} | ||
<li | ||
{{ if not $pag.HasNext }}class="disabled"{{ end }}> | ||
<a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next"><span aria-hidden="true">»</span></a> | ||
</li> | ||
{{ with $pag.Last }} | ||
<li> | ||
<a href="{{ .URL }}" aria-label="Last"><span aria-hidden="true">»»</span></a> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
{{ end }} | ||
|
Empty file.
Empty file.