1- <!DOCTYPE html>
2- < html xmlns ="http://www.w3.org/1999/xhtml "
3- xmlns:th ="http://www.thymeleaf.org "
4- xmlns:sec ="http://www.thymeleaf.org/extras/spring-security "
5- xmlns:sd ="http://www.thymeleaf.org/spring-data ">
6-
7- < section th:fragment ="breadcrumb(breadcrumb) ">
8- < div class ="container " sec:authorize ="isAuthenticated() " th:if ="${breadcrumb != null} ">
9- < nav aria-label ="breadcrumb ">
10- < ol class ="breadcrumb ">
11- < li th:each ="bc,iterStat : ${breadcrumb.getBreadcrumb()} "
12- th:class ="${iterStat == breadcrumb.size()-1 ? 'breadcrumb-item active' : 'breadcrumb-item'} ">
13- < span th:if ="${iterStat == breadcrumb.size()-1} " th:text ="${bc.name} "> </ span >
14- < a th:if ="${iterStat != breadcrumb.size()-1} "
15- th:href ="@{{url}(url=${bc.url})} "
16- th:text ="${bc.name} ">
17- </ a >
18- </ li >
19- </ ol >
20- </ nav >
21- </ div >
22- </ section >
23-
24- </ html >
1+ <!DOCTYPE html>
2+ < html xmlns ="http://www.w3.org/1999/xhtml "
3+ xmlns:th ="http://www.thymeleaf.org "
4+ xmlns:sec ="http://www.thymeleaf.org/extras/spring-security "
5+ xmlns:sd ="http://www.thymeleaf.org/spring-data ">
6+
7+ < section th:fragment ="breadcrumb(breadcrumb) ">
8+ < div class ="container " sec:authorize ="isAuthenticated() " th:if ="${breadcrumb != null} ">
9+ < nav aria-label ="breadcrumb " class =" m-1 mb-1 p-2 " >
10+ < ol class ="breadcrumb ">
11+ < li th:each ="bc,iterStat : ${breadcrumb.getBreadcrumb()} "
12+ th:class ="${iterStat == breadcrumb.size()-1 ? 'breadcrumb-item active' : 'breadcrumb-item'} ">
13+ < span th:if ="${iterStat == breadcrumb.size()-1} " th:text ="${bc.name} "> </ span >
14+ < a th:if ="${iterStat != breadcrumb.size()-1} "
15+ th:href ="@{{url}(url=${bc.url})} "
16+ th:text ="${bc.name} ">
17+ </ a >
18+ </ li >
19+ </ ol >
20+ </ nav >
21+ </ div >
22+ </ section >
23+
24+ </ html >
0 commit comments