summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/fragments.html
blob: 7a9af2fc5d8614a2ded34a3aff363409cb89e37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/style.css}" />
</head>
<body>
    <div th:fragment="nav">
        <nav>
            <a class="nav-home" th:href="@{/}">
                <img th:src="@{/icon.svg}" alt="Icon" />
                <span>ETL-Processor</span>
            </a>
            <ul>
                <li><a th:href="@{/}">Übersicht</a></li>
                <li><a th:href="@{/statistics}">Statistiken</a></li>
                <li sec:authorize="hasRole('ADMIN')">
                    <a th:href="@{/configs}">Konfiguration</a>
                </li>
                <li class="login" sec:authorize="not isAuthenticated()">
                    <a th:href="@{/login}">Login</a>
                </li>
                <li class="login" sec:authorize="isAuthenticated()">
                    <a th:href="@{/logout}">Abmelden</a>
                </li>
            </ul>
        </nav>
    </div>
</body>
</html>