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