Skip to content

Commit

Permalink
Newslist
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Ritter committed Apr 21, 2024
1 parent 6983138 commit 17f36b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/templates/sites/news/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2 class="h2 g-color-black g-font-weight-600">Die News-Beiträge</h2>
</header>

<ul data-th-each="item : ${items}">
<li><a href="#" data-th-href="@{/news/{slug}(slug=${news.slug})}" data-th-text="${news.title}"></a></li>
<li><a href="#" data-th-href="@{/news/{slug}(slug=${item.slug})}" data-th-text="${item.title}"></a></li>
</ul>

</div>
Expand Down

0 comments on commit 17f36b7

Please sign in to comment.