summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorFernando San Julián <fjsanjulian@hotmail.com>2015-07-30 22:14:52 +0200
committerFernando San Julián <fjsanjulian@hotmail.com>2015-07-30 22:14:52 +0200
commit4bfc71c73fae3718158f20775c908dfc05e98fea (patch)
tree1b63b49b961cb9fa4d54f5f55248d9fd66d206df /templates
parentc541938a3d6b1050a6ccaa0ad8c5aa064e9b4950 (diff)
downloadgitea-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.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" .}}