From 3eb1da8319d52c07bf92658a3f6b5584d2cc1709 Mon Sep 17 00:00:00 2001 From: jmanczak Date: Thu, 9 Apr 2026 13:07:40 +0200 Subject: [PATCH] don't show photos link on navbar --- src/web/components/nav.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/components/nav.rs b/src/web/components/nav.rs index 1f54fc8..5d4f281 100644 --- a/src/web/components/nav.rs +++ b/src/web/components/nav.rs @@ -20,7 +20,7 @@ pub fn nav(user: Option<&User>, uri: &str) -> Markup { div class="w-px h-5 bg-neutral-200/15 hidden sm:block" {} div class="flex flex-row" { @for link in LINKS { - @if !link.3 || user.is_some() { + @if (!link.3 || user.is_some()) && link.0 != "Photos" { a href={(link.1)} class="flex flex-row px-2 py-1 rounded items-center gap-2 hover:bg-neutral-200/5 border border-transparent hover:border-neutral-200/25" { @if uri.starts_with(link.1) { div class="scale-[.75] text-neutral-300" {(PreEscaped(link.2))}