From 38f64783ac563cfd9e8f5db158af51a90543034f Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 16 Feb 2026 20:16:57 +0000 Subject: [PATCH] Move pesticide settings outside the mocks And build a system for pulling common code out of the handlers --- .../sync/{mock => }/setting-pesticide.html | 6 +-- sync/routes.go | 47 ++++++++++++++++++- sync/setting.go | 8 ++++ 3 files changed, 56 insertions(+), 5 deletions(-) rename html/template/sync/{mock => }/setting-pesticide.html (98%) diff --git a/html/template/sync/mock/setting-pesticide.html b/html/template/sync/setting-pesticide.html similarity index 98% rename from html/template/sync/mock/setting-pesticide.html rename to html/template/sync/setting-pesticide.html index d5534c52..6490814e 100644 --- a/html/template/sync/mock/setting-pesticide.html +++ b/html/template/sync/setting-pesticide.html @@ -1,6 +1,6 @@ -{{ template "sync/layout/base.html" . }} +{{ template "sync/layout/authenticated.html" . }} -{{ define "title" }}Dash{{ end }} +{{ define "title" }}Settings - Pesticide{{ end }} {{ define "extraheader" }}