Skip to content

Commit

Permalink
TTK-26998: Show all pages in the pager
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina committed May 8, 2024
1 parent 9865f4f commit 662d12e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/Stats/js.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,8 @@
if (page > 3 && page < num-3){
range = [0,'...',page-1,page,page+1,'...',num-1];
}else if (page <= 3){
range = [0,1,2,3,'...',num-1];
}else if (page >= num-2){
range = [0,1,2,3,4,'...',num-1];
}else if (page >= num-3){
range = [0,'...',num-3,num-2,num-1];
} else {
range = [0,'...',page,'...',num-1];
Expand Down

0 comments on commit 662d12e

Please sign in to comment.