From 5c18b9938d82ef6097c0b79412c82c5ab70d83bf Mon Sep 17 00:00:00 2001 From: m15o Date: Sat, 12 Feb 2022 08:41:53 +0100 Subject: [PATCH] Latest version --- web/handler/html.go | 2 +- web/handler/html/user.html | 2 +- web/handler/tpl.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/handler/html.go b/web/handler/html.go index bf1fa0a..00c6a08 100644 --- a/web/handler/html.go +++ b/web/handler/html.go @@ -383,7 +383,7 @@ var TplMap = map[string]string{
Email
{{ if .email }} - {{ .email }}
+ {{ .email }} {{ else }} Not defined {{ end }} diff --git a/web/handler/html/user.html b/web/handler/html/user.html index 1fdd4af..af49a6f 100644 --- a/web/handler/html/user.html +++ b/web/handler/html/user.html @@ -23,7 +23,7 @@
Email
{{ if .email }} - {{ .email }}
+ {{ .email }} {{ else }} Not defined {{ end }} diff --git a/web/handler/tpl.go b/web/handler/tpl.go index 0a1d6bc..b22e5a2 100644 --- a/web/handler/tpl.go +++ b/web/handler/tpl.go @@ -16,7 +16,7 @@ func (h *Handler) initTpl() { for name, content := range TplMap { views[name] = template.Must(template.New("main").Funcs(template.FuncMap{ "faces": func() []string { - return []string{"🙂", "😎", "😛", "🥰", "❤️", "👽", "😱", "🤔", "😯", "🤒", "😡", "🥺", "🥳", "🤖", "💀", "😴", "😭", "🤐", "💾", "👀", "☕", "🍺", "📖", "🔥", "❄️", "✨", "💡", "🎶", "✈️", "🚄", "🍿", "📰", "✏️", "🍱", "🎄", "🎁", "🌧️", "🌙", "🎨", "📺", "🍕", "✅"} + return []string{"🙂", "😎", "😛", "🥰", "❤️", "👽", "😱", "🤔", "😯", "🤒", "😡", "🥺", "🥳", "🤖", "💀", "😴", "😭", "🤐", "💾", "👀", "☕", "🍺", "📖", "🔥", "❄️", "✨", "💡", "🎶", "✈️", "🚄", "🍿", "📰", "✏️", "🍱", "⛵", "🎁", "🌧️", "🌙", "🎨", "📺", "🍕", "✅"} }}).Parse(commonTemplates + content)) } }