From 17f36b76d65ef1dd0138bdca503c6b09a56c9eaf Mon Sep 17 00:00:00 2001 From: Bernd Ritter Date: Sun, 21 Apr 2024 14:08:41 +0200 Subject: [PATCH] Newslist --- src/main/java/de/holarse/web/controller/NewsController.java | 2 +- src/main/webapp/WEB-INF/templates/sites/news/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/holarse/web/controller/NewsController.java b/src/main/java/de/holarse/web/controller/NewsController.java index 9e2fe8a4..81b13c38 100644 --- a/src/main/java/de/holarse/web/controller/NewsController.java +++ b/src/main/java/de/holarse/web/controller/NewsController.java @@ -70,7 +70,7 @@ public class NewsController { private NewsCategoryRepository newsCategoryRepository; @GetMapping - public ModelAndView index(@PageableDefault(sort = {"title"}, value = NEWS_ARTICLES_DEFAULT_PAGE_SIZE) final PageRequest pageable, final ModelAndView mv) { + public ModelAndView index(@PageableDefault(sort = {"title"}, value = NEWS_ARTICLES_DEFAULT_PAGE_SIZE) final Pageable pageable, final ModelAndView mv) { mv.setViewName("layouts/bare"); mv.addObject("title", "Die Linuxspiele-Seite für Linuxspieler"); mv.addObject(WebDefines.DEFAULT_VIEW_ATTRIBUTE_NAME, "sites/news/index"); diff --git a/src/main/webapp/WEB-INF/templates/sites/news/index.html b/src/main/webapp/WEB-INF/templates/sites/news/index.html index 4ee68764..89bb5281 100644 --- a/src/main/webapp/WEB-INF/templates/sites/news/index.html +++ b/src/main/webapp/WEB-INF/templates/sites/news/index.html @@ -7,7 +7,7 @@

Die News-Beiträge