aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-07-31 08:42:15 +0800
committer无闻 <u@gogs.io>2015-07-31 08:42:15 +0800
commit3ff708b7497555797aa07ddfe0c44fa9e71f392c (patch)
tree1b63b49b961cb9fa4d54f5f55248d9fd66d206df
parentc541938a3d6b1050a6ccaa0ad8c5aa064e9b4950 (diff)
parent4bfc71c73fae3718158f20775c908dfc05e98fea (diff)
downloadgitea-3ff708b7497555797aa07ddfe0c44fa9e71f392c.tar.gz
gitea-3ff708b7497555797aa07ddfe0c44fa9e71f392c.zip
Merge pull request #1410 from manfer/issues-pagination-only-if-needed
Show pagination only if needed on repo issues page
-rw-r--r--templates/repo/issue/list.tmpl4
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" .}}