From 7ab5ff06cdac72a72e5038de248eab7687f44aa5 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen <frederik+gitea@baerentsen.net> Date: Fri, 19 Apr 2024 09:49:29 +0200 Subject: [PATCH] Fixed Show All themes --- templates/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index f1ead23..c47632a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -92,6 +92,9 @@ <a class="navbar-item" href="/create"> Add Set </a> + <a class="navbar-item" href="/missing"> + Missing + </a> <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navMenu"> <span aria-hidden="true"></span> <span aria-hidden="true"></span> @@ -587,7 +590,7 @@ document.addEventListener('DOMContentLoaded', function () { gridItems.forEach(function(item) { const themeLink = item.querySelector('.set_theme'); const themeId = themeLink.textContent.trim(); - if (!selectedTheme || themeId === selectedTheme || selectedTheme == "Show all") { + if (!selectedTheme || themeId === selectedTheme || selectedTheme == '> Show all <') { item.style.display = 'block'; // Show the grid item } else { item.style.display = 'none'; // Hide the grid item