Skip to content

Commit e5ab432

Browse files
working on #157
1 parent 93b4b43 commit e5ab432

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/main/java/org/woehlke/twitterwall/frontend/controller/TweetController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public String getLatestTweets(
5151
return "tweet/all";
5252
}
5353

54-
@RequestMapping("/id/{id}")
54+
@RequestMapping("/{id}")
5555
public String getLatestTweets(
5656
@PathVariable("id") Tweet tweet, Model model
5757
) {

src/main/resources/templates/hashtag/id.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h3>Tweets with the Hashtag #<span th:text="${hashTag.text}">Hashtag</span></h3>
1616
<div class="row">
1717
<div class="col-md-12">
1818
<span class="tw-pager-arrow tw-pager-up" th:if="${latestTweets.hasPrevious()}">
19-
<a href="" th:href="@{|/hashtag/${hashTag.text}?pageTweet=${latestTweets.previousPageable().pageNumber}&amp;pageUser=${users.number}|}">
19+
<a href="" th:href="@{|/hashtag/${hashTag.id}?pageTweet=${latestTweets.previousPageable().pageNumber}&amp;pageUser=${users.number}|}">
2020
<span>
2121
<i class="fa fa-chevron-circle-up" aria-hidden="true"></i>
2222
</span>
@@ -28,7 +28,7 @@ <h3>Tweets with the Hashtag #<span th:text="${hashTag.text}">Hashtag</span></h3>
2828
<div class="row">
2929
<div class="col-md-12">
3030
<span class="tw-pager-arrow tw-pager-down" th:if="${latestTweets.hasNext()}">
31-
<a href="" th:href="@{|/hashtag/${hashTag.text}?pageTweet=${latestTweets.nextPageable().pageNumber}&amp;pageUser=${users.number}|}" >
31+
<a href="" th:href="@{|/hashtag/${hashTag.id}?pageTweet=${latestTweets.nextPageable().pageNumber}&amp;pageUser=${users.number}|}" >
3232
<span>
3333
<i class="fa fa-chevron-circle-down" aria-hidden="true"></i>
3434
</span>
@@ -45,7 +45,7 @@ <h3>Users with the Hashtag #<span th:text="${hashTag.text}">Hashtag</span></h3>
4545
<div class="row">
4646
<div class="col-md-12">
4747
<span class="tw-pager-arrow tw-pager-up" th:if="${users.hasPrevious()}">
48-
<a href="" th:href="@{|/hashtag/${hashTag.text}?pageUser=${users.previousPageable().pageNumber}&amp;pageTweet=${latestTweets.number}|}">
48+
<a href="" th:href="@{|/hashtag/${hashTag.id}?pageUser=${users.previousPageable().pageNumber}&amp;pageTweet=${latestTweets.number}|}">
4949
<span>
5050
<i class="fa fa-chevron-circle-up" aria-hidden="true"></i>
5151
</span>
@@ -58,7 +58,7 @@ <h3>Users with the Hashtag #<span th:text="${hashTag.text}">Hashtag</span></h3>
5858
<div class="row">
5959
<div class="col-md-12">
6060
<span class="tw-pager-arrow tw-pager-down" th:if="${users.hasNext()}">
61-
<a href="" th:href="@{|/hashtag/${hashTag.text}?pageUser=${users.nextPageable().pageNumber}&amp;pageTweet=${latestTweets.number}|}" >
61+
<a href="" th:href="@{|/hashtag/${hashTag.id}?pageUser=${users.nextPageable().pageNumber}&amp;pageTweet=${latestTweets.number}|}" >
6262
<span>
6363
<i class="fa fa-chevron-circle-down" aria-hidden="true"></i>
6464
</span>

src/main/resources/templates/taskhistory/all.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html xmlns="http://www.w3.org/1999/xhtml"
33
xmlns:th="http://www.thymeleaf.org">
4-
<head th:include="layout :: tw-head">
4+
<head th:include="layoutMain :: tw-head">
55
</head>
66
<body id="page-top" class="page-2" style="padding-top:50px; padding-bottom:200px;">
7-
<header th:include="layout :: tw-header" >
7+
<header th:include="layoutMain :: tw-header" >
88
</header>
99
<main class="page-content">
1010
<div class="container">
@@ -74,7 +74,7 @@
7474
<section th:include="layoutMain :: tw-history-back-section" >
7575
</section>
7676

77-
<footer th:include="layout :: footer" >
77+
<footer th:include="layoutMain :: footer" >
7878

7979
</footer>
8080
</body>

0 commit comments

Comments
 (0)