Homepage now says welcome guest instead of anonymouseUser
This commit is contained in:
parent
fd6de29a89
commit
8824678682
@ -35,7 +35,12 @@
|
|||||||
<th:block th:each="userName: ${userNames}">
|
<th:block th:each="userName: ${userNames}">
|
||||||
<div th:text="${userName}"></div>
|
<div th:text="${userName}"></div>
|
||||||
</th:block> -->
|
</th:block> -->
|
||||||
<span th:if="${message}"> </span> Welcome <span th:text="${#authentication.name}">nova</span>
|
<span th:if="${message}"> </span>
|
||||||
|
<div th:switch="${#authentication.name}">
|
||||||
|
<p th:case="'anonymousUser'">Welcome guest
|
||||||
|
</p>
|
||||||
|
<p th:case="*"><span th:text="'Welcome ' + ${#authentication.name}"></span></p>
|
||||||
|
</div>
|
||||||
<p>Chatto is a minimal, end to end encrypted chat application.</p>
|
<p>Chatto is a minimal, end to end encrypted chat application.</p>
|
||||||
<!-- <button class="btn btn-secondary"> <a href="registration.html" th:href="{@/registration}">Get Started</a></button> -->
|
<!-- <button class="btn btn-secondary"> <a href="registration.html" th:href="{@/registration}">Get Started</a></button> -->
|
||||||
<a class="btn btn-secondary" href="registration.html" th:href="@{/registration}">Get Started</a>
|
<a class="btn btn-secondary" href="registration.html" th:href="@{/registration}">Get Started</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user