Signed-off-by: oppiliappan me@oppi.li
ERROR
appview/pages/templates/repo/fragments/externalLinkPanel.html
ERROR
appview/pages/templates/repo/fragments/externalLinkPanel.html
Failed to calculate interdiff for this file.
NEW
appview/pages/funcmap.go
NEW
appview/pages/funcmap.go
···
75
75
"splitOn": func(s, sep string) []string {
76
76
return strings.Split(s, sep)
77
77
},
78
+
"string": func(v any) string {
79
+
return fmt.Sprint(v)
80
+
},
78
81
"int64": func(a int) int64 {
79
82
return int64(a)
80
83
},
···
288
291
u, _ := url.PathUnescape(s)
289
292
return u
290
293
},
291
-
294
+
"safeUrl": func(s string) template.URL {
295
+
return template.URL(s)
296
+
},
292
297
"tinyAvatar": func(handle string) string {
293
298
return p.AvatarUrl(handle, "tiny")
294
299
},