Skip to content

Commit

Permalink
moved logout into the profile dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Veronika Patakyová committed Oct 7, 2024
1 parent 9e827f9 commit 9d5333b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main/resources/templates/fragments/panels.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1"/>
</svg>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="profileDropdown">
<ul class="dropdown-menu dropdown-menu-end pb-0" aria-labelledby="profileDropdown">
<span class="py-1 px-3 d-block fw-bolder" th:text="${#authentication.getPrincipal().nickname}"></span>
<span class="py-1 px-3 d-block" th:text="${#authentication.getName()}"></span>
<form class="border-top dropdown-item" th:action="@{/logout}" th:method="post">
<button class="btn px-0 text-start w-100" type="submit" th:text="#{navbar.logout}">Logout</button>
</form>
</ul>
</li>

<li class="nav-item">
<form th:action="@{/logout}" th:method="post">
<button class="btn btn-link nav-link" type="submit" th:text="#{navbar.logout}">Logout</button>
</form>
</li>
</div>
<div class="navbar-nav" sec:authorize="isAnonymous()">
<li class="nav-item">
Expand Down

0 comments on commit 9d5333b

Please sign in to comment.