-
{{ .Version.URL }}
+
() {{ namespan "version.url" .Version.URL }}
{{ .Version.Created }} (last {{ .Execution.Executed }})
@{{ .Version.Cron }} ~"{{ .Version.Pattern }}"
{{ .Version.WebhookMethod }} {{ .Version.WebhookURL }} | {{ .Version.WebhookBody }}
diff --git a/src/cmd/server/handler/ui.go b/src/cmd/server/handler/ui.go
index 65feb39..f2fe373 100644
--- a/src/cmd/server/handler/ui.go
+++ b/src/cmd/server/handler/ui.go
@@ -2,12 +2,13 @@ package handler
import (
"encoding/json"
- "html/template"
+ "fmt"
"net/http"
"os"
"path"
"show-rss/src/feeds"
"slices"
+ "text/template"
)
var dir = func() string {
@@ -51,6 +52,9 @@ func (h Handler) uiIndex(w http.ResponseWriter, r *http.Request) error {
slices.Sort(ks)
return ks
},
+ "namespan": func(k string, v any) string {
+ return fmt.Sprintf("
%s", k, v)
+ },
})
tmpl, err := tmpl.Parse(string(b))