@import gitbucket.core.view.helpers @(page: Int, count: Int, limit: Int, width: Int, baseURL: String = "") @defining(gitbucket.core.view.Pagination(page, count, limit, width)){ p => @if(p.count > p.limit){

@if(page == 1){
- ◀
} else {
- ◀
} @for(i <- 1 to p.max){ @if(i == p.max && p.omitRight){
- …
} @if(i == page){
- @i
} else { @if(p.visibleFor(i)){
- @i
} } @if(i == 1 && p.omitLeft){
- …
} } @if(page == p.max){
- ▶
} else {
- ▶
}

} }