@(page: Int, count: Int, limit: Int, width: Int, baseURL: String) @defining(view.Pagination(page, count, service.IssuesService.IssueLimit, 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 {
- ▶
}

} }