From c42beaca66e4b42a69ca68ad4e58d753b03f1020 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 30 Jan 2026 15:40:28 +0000 Subject: [PATCH] Make district logo a link to their website --- rmo/mock.go | 10 ++++++---- rmo/template/mock/nuisance-submit-complete.html | 14 ++++++++------ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/rmo/mock.go b/rmo/mock.go index 8d029486..3255eab9 100644 --- a/rmo/mock.go +++ b/rmo/mock.go @@ -18,8 +18,9 @@ var ( ) type ContentDistrict struct { - Name string - URLLogo string + Name string + URLLogo string + URLWebsite string } type ContentURL struct { Nuisance string @@ -71,8 +72,9 @@ func renderMock(t *htmlpage.BuiltTemplate) func(http.ResponseWriter, *http.Reque t, ContentMock{ District: ContentDistrict{ - Name: "Delta MVCD", - URLLogo: config.MakeURLNidus("/api/district/%s/logo", slug), + Name: "Delta MVCD", + URLLogo: config.MakeURLNidus("/api/district/%s/logo", slug), + URLWebsite: "http://www.deltavcd.com/", }, MapboxToken: config.MapboxToken, ReportID: "abcd-1234-5678", diff --git a/rmo/template/mock/nuisance-submit-complete.html b/rmo/template/mock/nuisance-submit-complete.html index 4249a70a..87b366f0 100644 --- a/rmo/template/mock/nuisance-submit-complete.html +++ b/rmo/template/mock/nuisance-submit-complete.html @@ -104,12 +104,14 @@ -
- {{ if not (eq .District nil) }} -

Your report will be handled by

-

{{ .District.Name }}

- - {{ end }} +
+
+ {{ if not (eq .District nil) }} +

Your report will be handled by

+

{{ .District.Name }}

+ + {{ end }} +