Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-01 06:16:09 +01:00

pagination in repo issues page only if needed

This commit is contained in:
Fernando San Julián 2015-07-30 22:14:52 +02:00
parent c541938a3d
commit 4bfc71c73f

View file

@ -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,6 +106,7 @@
</div>
</div>
{{end}}
{{end}}
</div>
</div>
</div>