diff --git a/src/main/java/com/uniovi/controllers/PlayersController.java b/src/main/java/com/uniovi/controllers/PlayersController.java index 27bb9564..d291b6c6 100644 --- a/src/main/java/com/uniovi/controllers/PlayersController.java +++ b/src/main/java/com/uniovi/controllers/PlayersController.java @@ -100,6 +100,7 @@ public String showGlobalRanking(Pageable pageable, Model model) { model.addAttribute("ranking", ranking.getContent()); model.addAttribute("page", ranking); + model.addAttribute("num", pageable.getPageSize()); return "ranking/globalRanking"; } @@ -117,6 +118,7 @@ public String showPlayerRanking(Pageable pageable, Model model, Principal princi model.addAttribute("ranking", ranking.getContent()); model.addAttribute("page", ranking); + model.addAttribute("num", pageable.getPageSize()); return "ranking/playerRanking"; } diff --git a/src/main/resources/templates/ranking/globalRanking_table.html b/src/main/resources/templates/ranking/globalRanking_table.html index 6a88253c..71fa0890 100644 --- a/src/main/resources/templates/ranking/globalRanking_table.html +++ b/src/main/resources/templates/ranking/globalRanking_table.html @@ -10,7 +10,7 @@