From c8f5408f273516e1c16d8cfccab7e420996b3ea9 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 24 Feb 2026 20:02:44 +0000 Subject: [PATCH] Add link from root upload page to upload pool detail page. --- html/func.go | 4 ++ html/template/sync/pool-list.html | 58 ------------------- ...l-csv-upload.html => upload-csv-pool.html} | 2 +- html/template/sync/upload-list.html | 13 +---- platform/csv/pool.go | 8 +++ sync/routes.go | 3 +- sync/upload.go | 13 +---- sync/url.go | 4 +- 8 files changed, 20 insertions(+), 85 deletions(-) delete mode 100644 html/template/sync/pool-list.html rename html/template/sync/{pool-csv-upload.html => upload-csv-pool.html} (99%) diff --git a/html/func.go b/html/func.go index 63995c9e..d21c96fb 100644 --- a/html/func.go +++ b/html/func.go @@ -61,6 +61,10 @@ func bigNumber(n int) string { } func displayUploadStatus(s string) string { switch s { + case "committed": + return "committed" + case "discarded": + return "Discarded" case "error": return "Bad upload" case "parsed": diff --git a/html/template/sync/pool-list.html b/html/template/sync/pool-list.html deleted file mode 100644 index 0f7b71c4..00000000 --- a/html/template/sync/pool-list.html +++ /dev/null @@ -1,58 +0,0 @@ -{{ template "sync/layout/authenticated.html" . }} - -{{ define "title" }}Pool List{{ end }} -{{ define "extraheader" }} - -{{ end }} -{{ define "content" }} -
-
-
-
-
-

Pool CSV Uploads

-
-
-
- - - - - - - - - {{ range .C.Uploads }} - - - - - {{ end }} - -
StatusUploaded
{{ .Status }}{{ .Created|timeRelative }}
-
-
-
-
- -
-
-{{ end }} diff --git a/html/template/sync/pool-csv-upload.html b/html/template/sync/upload-csv-pool.html similarity index 99% rename from html/template/sync/pool-csv-upload.html rename to html/template/sync/upload-csv-pool.html index 48f37135..7af46820 100644 --- a/html/template/sync/pool-csv-upload.html +++ b/html/template/sync/upload-csv-pool.html @@ -133,7 +133,7 @@
diff --git a/html/template/sync/upload-list.html b/html/template/sync/upload-list.html index ccc57b16..f49f655c 100644 --- a/html/template/sync/upload-list.html +++ b/html/template/sync/upload-list.html @@ -36,16 +36,9 @@ Upload spreadsheets with addresses and contact information of unmaintained pools that may breed mosquitoes.

-

Supported formats: .xlsx, .csv, .xls

-
- - -
- + + Upload Green Pool Data