mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-06-30 18:53:42 +02:00
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org"
|
|
xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<nav th:fragment="navigation">
|
|
<div class="ui menu">
|
|
<a class="item" th:href="@{/}">Startseite</a>
|
|
<a class="item" th:href="@{/inventory}" sec:authorize="hasRole('ADMIN')">Inventar</a>
|
|
<a class="item" th:href="@{/catalog}">Katalog</a>
|
|
<a class="item" th:href="@{/staff}" sec:authorize="hasRole('ADMIN')">Angestellte</a>
|
|
<a class="item" th:href="@{/customers}" sec:authorize="hasRole('ADMIN')">Kunden</a>
|
|
<a class="item" th:href="@{/orders}" sec:authorize="isAuthenticated()">Bestellungen</a>
|
|
<a class="item" th:href="@{/event}" sec:authorize="hasRole('CUSTOMER')">Event planen</a>
|
|
<a class="item" th:href="@{/orders/calender}" sec:authorize="hasRole('ADMIN')">Kalender</a>
|
|
|
|
<div class="right menu">
|
|
<a class="item" th:href="@{/login}" sec:authorize="!isAuthenticated()">Login</a>
|
|
<a class="item" th:href="@{/register}" sec:authorize="!isAuthenticated()">Registrierung</a>
|
|
<a class="item" th:href="@{/profile}" sec:authorize="isAuthenticated()">Profil</a>
|
|
<a class="item" th:href="@{/logout}" sec:authorize="isAuthenticated()">Logout</a>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
</nav>
|
|
</body>
|
|
</html>
|