Initial working marker display in shadow dom
This commit is contained in:
parent
bea7c28af2
commit
b94d09696e
7 changed files with 208 additions and 39 deletions
|
|
@ -110,6 +110,8 @@ func bigNumber(n int) string {
|
|||
func makeFuncMap() template.FuncMap {
|
||||
funcMap := template.FuncMap{
|
||||
"bigNumber": bigNumber,
|
||||
"html": unescapeHTML,
|
||||
"json": unescapeJS,
|
||||
"GISStatement": gisStatement,
|
||||
"latLngDisplay": latLngDisplay,
|
||||
"publicReportID": publicReportID,
|
||||
|
|
@ -291,6 +293,12 @@ func timeSince(t time.Time) string {
|
|||
return fmt.Sprintf("%d days ago", int(days))
|
||||
}
|
||||
}
|
||||
func unescapeHTML(s string) template.HTML {
|
||||
return template.HTML(s)
|
||||
}
|
||||
func unescapeJS(s string) template.JS {
|
||||
return template.JS(s)
|
||||
}
|
||||
func uuidShort(uuid uuid.UUID) string {
|
||||
s := uuid.String()
|
||||
if len(s) < 7 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue