diff options
author | Fernando San Julián <fjsanjulian@hotmail.com> | 2015-07-30 22:14:52 +0200 |
---|---|---|
committer | Fernando San Julián <fjsanjulian@hotmail.com> | 2015-07-30 22:14:52 +0200 |
commit | 4bfc71c73fae3718158f20775c908dfc05e98fea (patch) | |
tree | 1b63b49b961cb9fa4d54f5f55248d9fd66d206df /templates | |
parent | c541938a3d6b1050a6ccaa0ad8c5aa064e9b4950 (diff) | |
download | gitea-4bfc71c73fae3718158f20775c908dfc05e98fea.tar.gz gitea-4bfc71c73fae3718158f20775c908dfc05e98fea.zip |
pagination in repo issues page only if needed
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/list.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 72667625e3..21da0f543e 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -87,6 +87,7 @@ {{end}} {{with .Page}} + {{if gt .Total 1}} <div class="center page buttons"> <div class="ui borderless pagination menu"> <a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.RepoLink}}/issues?type={{$.ViewType}}&state={{$.State}}&labels={{$.SelectLabels}}&page={{.Previous}}"{{end}}> @@ -105,7 +106,8 @@ </div> </div> {{end}} + {{end}} </div> </div> </div> -{{template "base/footer" .}}
\ No newline at end of file +{{template "base/footer" .}} |