From 5e3a97272aa2405f2084360f72ee310ea7135abb Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 25 Feb 2026 17:21:37 +0000 Subject: [PATCH] Nest setting object inside URL, use URL in sidebar --- html/template/sync/component/sidebar.html | 10 ++-- html/template/sync/layout/authenticated.html | 2 +- html/template/sync/settings.html | 8 +-- sync/url.go | 63 ++++++++++++-------- 4 files changed, 47 insertions(+), 36 deletions(-) diff --git a/html/template/sync/component/sidebar.html b/html/template/sync/component/sidebar.html index 83d8d87b..7f628b2c 100644 --- a/html/template/sync/component/sidebar.html +++ b/html/template/sync/component/sidebar.html @@ -51,14 +51,14 @@ title="Notifications" > - {{ if gt (len .Notifications) 0 }} + {{ if gt (len .User.Notifications) 0 }} - {{ if gt (len .Notifications) 99 }} + {{ if gt (len .User.Notifications) 99 }} 99+ {{ else }} - {{ len .Notifications }} + {{ len .User.Notifications }} {{ end }} unread notifications @@ -112,7 +112,7 @@ Help - {{ if eq .Role "root" }} + {{ if eq .User.Role "root" }} {{ if .User }} - {{ template "sync/component/sidebar.html" .User }} + {{ template "sync/component/sidebar.html" . }} {{ end }} diff --git a/html/template/sync/settings.html b/html/template/sync/settings.html index c40097c6..4816b596 100644 --- a/html/template/sync/settings.html +++ b/html/template/sync/settings.html @@ -28,7 +28,7 @@ organization.