You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
852 B

  1. {{with .Page}}
  2. {{if gt .TotalPages 1}}
  3. <div class="center page buttons">
  4. <div class="ui borderless pagination menu">
  5. <a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}&q={{$.Keyword}}"{{end}}>
  6. <i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}}
  7. </a>
  8. {{range .Pages}}
  9. {{if eq .Num -1}}
  10. <a class="disabled item">...</a>
  11. {{else}}
  12. <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}&q={{$.Keyword}}"{{end}}>{{.Num}}</a>
  13. {{end}}
  14. {{end}}
  15. <a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}&q={{$.Keyword}}"{{end}}>
  16. {{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i>
  17. </a>
  18. </div>
  19. </div>
  20. {{end}}
  21. {{end}}