Newer
Older
simple-opds / src / main / resources / templates / fragments / breadcrumbs.html
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div th:fragment="breadcrumbs">
    <nav aria-label="You are here:" role="navigation">
        <ul class="breadcrumbs" th:if="${breadcrumbs != null and !breadcrumbs.empty}">
            <li><a th:href="@{/}">Главная</a></li>
            <li th:each="crumb, iter : ${breadcrumbs}"
                th:classappend="${iter.last} ? 'disabled'">
                <span th:if="${iter.last}" th:text="${crumb}"></span>
                <a th:unless="${iter.last}" th:href="${crumb.url}" th:text="${crumb}"></a>
            </li>
        </ul>
        <ul class="breadcrumbs" th:unless="${breadcrumbs != null and !breadcrumbs.empty}">
            <li><a th:href="@{/}">Главная</a></li>
            <li class="disabled">Добро пожаловать</li>
        </ul>
    </nav>
</div>
</body>
</html>