mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-09 00:04:21 -04:00
Merge pull request #1410 from manfer/issues-pagination-only-if-needed
Show pagination only if needed on repo issues page
This commit is contained in:
commit
3ff708b749
@ -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" .}}
|
||||
{{template "base/footer" .}}
|
||||
|
Loading…
Reference in New Issue
Block a user