From 7d0d0bcffec407ff287e61efac26a835d66123f8 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 19 Nov 2024 16:40:14 -0600 Subject: [PATCH] Adding default marker on link listings page --- list/routes.go | 1 + templates/listing_list.html | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/list/routes.go b/list/routes.go index 039f026..9ee28dd 100644 --- a/list/routes.go +++ b/list/routes.go @@ -998,6 +998,7 @@ func (s *Service) ListingList(c echo.Context) error { pd.Data["exclude_tags"] = lt.Translate("Exclude Tags") pd.Data["apply"] = lt.Translate("Apply") pd.Data["clear"] = lt.Translate("Clear") + pd.Data["is_default"] = lt.Translate("Is Default") type GraphQLResponse struct { Listings struct { diff --git a/templates/listing_list.html b/templates/listing_list.html index 515778c..da23de4 100644 --- a/templates/listing_list.html +++ b/templates/listing_list.html @@ -36,6 +36,7 @@ {{.pd.Data.title}} {{.pd.Data.tags}} URL + {{ .pd.Data.is_default }} @@ -49,7 +50,7 @@ {{formatDate .CreatedOn}} - + {{truncate (buildServiceURL .LookupName .Slug) 50}} + + {{if .IsDefault}} + + + + {{else}} + + + + {{end}} +