Browse Source

Homepage now says welcome guest instead of anonymouseUser

master
Rohan Sircar 5 years ago
parent
commit
8824678682
  1. 7
      chatto/src/main/resources/templates/home.html

7
chatto/src/main/resources/templates/home.html

@ -35,7 +35,12 @@
<th:block th:each="userName: ${userNames}">
<div th:text="${userName}"></div>
</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>
<!-- <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>

Loading…
Cancel
Save