Skip to content

Commit

Permalink
Fix Thymeleaf deprecated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
arey committed Sep 14, 2023
1 parent 06a96d9 commit 9aa5683
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/resources/templates/fragments/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@

<ul class="nav navbar-nav me-auto">

<li th:replace="::menuItem ('/','home','home page','home','Home')">
<li th:replace="~{::menuItem ('/','home','home page','home','Home')}">
<span class="fa fa-home" aria-hidden="true"></span>
<span>Home</span>
</li>

<li th:replace="::menuItem ('/owners/find','owners','find owners','search','Find owners')">
<li th:replace="~{::menuItem ('/owners/find','owners','find owners','search','Find owners')}">
<span class="fa fa-search" aria-hidden="true"></span>
<span>Find owners</span>
</li>

<li th:replace="::menuItem ('/vets.html','vets','veterinarians','th-list','Veterinarians')">
<li th:replace="~{::menuItem ('/vets.html','vets','veterinarians','th-list','Veterinarians')}">
<span class="fa fa-th-list" aria-hidden="true"></span>
<span>Veterinarians</span>
</li>

<li
th:replace="::menuItem ('/oups','error','trigger a RuntimeException to see how it is handled','exclamation-triangle','Error')">
th:replace="~{::menuItem ('/oups','error','trigger a RuntimeException to see how it is handled','exclamation-triangle','Error')}">
<span class="fa exclamation-triangle" aria-hidden="true"></span>
<span>Error</span>
</li>
Expand All @@ -73,7 +73,7 @@
<div class="container-fluid">
<div class="container xd-container">

<th:block th:include="${template}" />
<th:block th:insert="${template}" />

<br />
<br />
Expand Down

0 comments on commit 9aa5683

Please sign in to comment.