fix: Email templates to not contain white spaces / new lines if .CallToAction is nil
(cherry picked from commit 0c84fe8b36)
This commit is contained in:
1 parent
404ace9fb4
commit
938ee392a3
3 files changed
+13
-4
No files matched your search
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix email templates white spaces & new lines
|
||||
|
||||
Email templates now contain no unwanted white spaces & new lines if .CallToAction is nil
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10884
|
||||
@@ -11,8 +11,10 @@
|
||||
{{ .Greeting }}
|
||||
<br><br>
|
||||
{{ .MessageBody }}
|
||||
{{if ne .CallToAction "" }}<br><br>
|
||||
{{ .CallToAction }}{{end}}
|
||||
{{- if .CallToAction }}
|
||||
<br><br>
|
||||
{{ .CallToAction }}
|
||||
{{- end }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{{ .Greeting }}
|
||||
|
||||
{{ .MessageBody }}
|
||||
{{if ne .CallToAction "" }}
|
||||
{{- if .CallToAction }}
|
||||
|
||||
{{ .CallToAction }}
|
||||
{{end}}
|
||||
{{- end }}
|
||||
|
||||
|
||||
---
|
||||
ownCloud - Store. Share. Work.
|
||||
|
||||
Reference in new issue
Block a user