Remove defaults for Greeting/Signature
This commit is contained in:
parent
ab1a08cd57
commit
f188c9883b
|
@ -387,11 +387,13 @@ func (dt *Default) HTMLTemplate() string {
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Email.Body.Signature }}
|
||||
<p>
|
||||
{{.Email.Body.Signature}},
|
||||
<br />
|
||||
{{.Hermes.Product.Name}}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if (eq .Email.Body.FreeMarkdown "") }}
|
||||
{{ with .Email.Body.Actions }}
|
||||
|
@ -488,7 +490,10 @@ func (dt *Default) PlainTextTemplate() string {
|
|||
<p>{{ $line }}<p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<p>{{.Email.Body.Signature}},<br>{{.Hermes.Product.Name}} - {{.Hermes.Product.Link}}</p>
|
||||
{{if .Email.Body.Signature }}
|
||||
<p>{{.Email.Body.Signature}},<br>{{.Hermes.Product.Name}} - {{.Hermes.Product.Link}}</p>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<p>{{.Hermes.Product.Copyright}}</p>
|
||||
`
|
||||
|
|
6
flat.go
6
flat.go
|
@ -387,11 +387,13 @@ func (dt *Flat) HTMLTemplate() string {
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Email.Body.Signature }}
|
||||
<p>
|
||||
{{.Email.Body.Signature}},
|
||||
<br />
|
||||
{{.Hermes.Product.Name}}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if (eq .Email.Body.FreeMarkdown "") }}
|
||||
{{ with .Email.Body.Actions }}
|
||||
|
@ -488,7 +490,9 @@ func (dt *Flat) PlainTextTemplate() string {
|
|||
<p>{{ $line }}<p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<p>{{.Email.Body.Signature}},<br>{{.Hermes.Product.Name}} - {{.Hermes.Product.Link}}</p>
|
||||
{{if .Email.Body.Signature }}
|
||||
<p>{{.Email.Body.Signature}},<br>{{.Hermes.Product.Name}} - {{.Hermes.Product.Link}}</p>
|
||||
{{ end }}
|
||||
|
||||
<p>{{.Hermes.Product.Copyright}}</p>
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue