From 0aeba98fb061bb8777977ba0a9af2ae2f7d77f4e Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 5 Mar 2026 14:49:39 +0000 Subject: [PATCH] Show short address on green pool signal --- api/signal.go | 18 +++++++++--------- html/template/sync/intelligence-root.html | 7 +++++++ scss/sync/intelligence.scss | 3 +++ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/api/signal.go b/api/signal.go index cecc5c0a..b339658a 100644 --- a/api/signal.go +++ b/api/signal.go @@ -17,18 +17,18 @@ import ( ) type Address struct { - Country string `db:"country"` - Locality string `db:"locality"` - Number string `db:"number"` - PostalCode string `db:"postal_code"` - Region string `db:"region"` - Street string `db:"street"` - Unit string `db:"unit"` + Country string `db:"country" json:"country"` + Locality string `db:"locality" json:"locality"` + Number string `db:"number" json:"number"` + PostalCode string `db:"postal_code" json:"postal_code"` + Region string `db:"region" json:"region"` + Street string `db:"street" json:"street"` + Unit string `db:"unit" json:"unit"` } type signal struct { - Address Address + Address Address `json:"address"` Addressed *time.Time `json:"addressed"` - Addressor *platform.User `json:"addressed"` + Addressor *platform.User `json:"addressor"` Created time.Time `json:"created"` Creator platform.User `json:"creator"` ID int32 `json:"id"` diff --git a/html/template/sync/intelligence-root.html b/html/template/sync/intelligence-root.html index 2c521bbf..5c8565f2 100644 --- a/html/template/sync/intelligence-root.html +++ b/html/template/sync/intelligence-root.html @@ -13,6 +13,9 @@ >