Skip to content

Commit

Permalink
Merge pull request #25 from davidsholoye/check-navbar
Browse files Browse the repository at this point in the history
add correct links to navbar to go to current user's profile page
  • Loading branch information
somunachima authored Nov 23, 2023
2 parents 9f5e860 + 3ab4d44 commit 92c8a01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/templates/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<div th:unless="${session.containsKey('user_id')}">
<a href="/login">Log In</a>
<a href="/register">Register</a>

</div>
<a th:href="@{/users/{id}(id=${currentUser.id})}" class="profile-image">
<div class="header-title" sec:authorize="isAuthenticated()">
Expand All @@ -37,7 +38,7 @@

<div class="posts-timeline">
<div class="welcome-title" sec:authorize="isAuthenticated()">
Welcome<span sec:authentication="name" class="header-title-name"></span>!
Welcome <span sec:authentication="name" class="header-title-name"></span>!
</div>

<form action="#" th:action="@{/posts}" th:object="${newPost}" method="post" class="posts-content-form">
Expand Down

0 comments on commit 92c8a01

Please sign in to comment.