navbar hinzugefügt

This commit is contained in:
Technoir committed 2026-10-10 11:51:27 +02:00
1 parent 390b3b266c
commit 13e2af55a8
2 files changed
+29 -1

No files matched your search

+14
View File
@@ -11,6 +11,20 @@ xmlns:th="http://www.thymeleaf.org">
<script src="/js/pages/index/index.js" type="module"></script>
<body>
<nav class="nav">
<ul class="nav__links">
<li class="nav__link"><a href="/">Alle Einkaufslisten</a></li>
<li class="nav__dropdown">Listen &gt;
<ul class="nav__dropdownMenu">
<li th:each="list : ${lists}" th:data-id="${list.id}" class="navbar__list">
<a th:text="${list.listName}" th:href="@{/list/{id}(id=${list.id})}"></a>
</li>
</ul>
</li>
</ul>
</nav>
<div class="index">
<form class="addListForm">
<input type="text" name="listName" required />
+15 -1
View File
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
@@ -9,6 +9,20 @@
<script src="/js/pages/list/list.js" type="module"></script>
</head>
<body>
<nav class="nav">
<ul class="nav__links">
<li class="nav__link"><a href="/">Alle Einkaufslisten</a></li>
<li class="nav__dropdown">Listen &gt;
<ul class="nav__dropdownMenu">
<li th:each="list : ${lists}" th:data-id="${list.id}" class="navbar__list">
<a th:text="${list.listName}" th:href="@{/list/{id}(id=${list.id})}"></a>
</li>
</ul>
</li>
</ul>
</nav>
<div class="title">
<h1 th:text="${list.listName}"></h1>
</div>