pagination in repo issues page only if needed

tokarchuk/v1.17
Fernando San Julián 9 years ago
parent c541938a3d
commit 4bfc71c73f
  1. 2
      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,6 +106,7 @@
</div>
</div>
{{end}}
{{end}}
</div>
</div>
</div>

Loading…
Cancel
Save