Skip to content

Commit 8970124

Browse files
committed
Improved Thymeleaf code
1 parent 129c769 commit 8970124

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • access-control-spring-security/src/main/resources/templates/contacts

access-control-spring-security/src/main/resources/templates/contacts/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="row" id="welcome">
1313
<div class="col-12">
1414
<h1>All Contacts
15-
<small th:text="'for ' + ${#httpServletRequest.remoteUser}"></small>
15+
<small th:text="|for ${#httpServletRequest.remoteUser}|"></small>
1616
</h1>
1717
</div>
1818
</div>
@@ -22,7 +22,7 @@ <h1>All Contacts
2222
<div class="col-md-12">
2323
<ul>
2424
<li th:each="contact : ${contacts}">
25-
<a th:text="${contact.firstname} + ' '+ ${contact.lastname}" th:href="@{|contacts/${contact.id}|}"></a>
25+
<a th:text="|${contact.firstname} ${contact.lastname}|" th:href="@{|contacts/${contact.id}|}"></a>
2626
</li>
2727
</ul>
2828
</div>

0 commit comments

Comments
 (0)