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)) } }