Browse Source

pagination in repo issues page only if needed

tags/v1.2.0-rc1
Fernando San Julián 10 years ago
parent
commit
0857cb0bbb
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      templates/repo/issue/list.tmpl

+ 3
- 1
templates/repo/issue/list.tmpl View File

@@ -87,6 +87,7 @@
{{end}} {{end}}
{{with .Page}} {{with .Page}}
{{if gt .Total 1}}
<div class="center page buttons"> <div class="center page buttons">
<div class="ui borderless pagination menu"> <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}}> <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>
</div> </div>
{{end}} {{end}}
{{end}}
</div> </div>
</div> </div>
</div> </div>
{{template "base/footer" .}}
{{template "base/footer" .}}

Loading…
Cancel
Save