From 51f226d22e9f9352f30450c02650cc45a1e5302b Mon Sep 17 00:00:00 2001 From: UO287568 Date: Tue, 23 Apr 2024 15:50:31 +0200 Subject: [PATCH] =?UTF-8?q?Correci=C3=B3n=20=C3=ADndice=20ranking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/uniovi/controllers/PlayersController.java | 2 ++ src/main/resources/templates/ranking/globalRanking_table.html | 2 +- src/main/resources/templates/ranking/playerRanking_table.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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 @@ - + diff --git a/src/main/resources/templates/ranking/playerRanking_table.html b/src/main/resources/templates/ranking/playerRanking_table.html index bc718926..3afae686 100644 --- a/src/main/resources/templates/ranking/playerRanking_table.html +++ b/src/main/resources/templates/ranking/playerRanking_table.html @@ -11,7 +11,7 @@ - +