File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ defmodule Keila.Mailings.Builder do
144
144
defp put_body ( email , campaign = % { settings: % { type: :text } } , assigns ) do
145
145
body_with_signature =
146
146
( campaign . text_body || "" ) <>
147
- "\n \n -- \n " <> ( assigns [ "signature" ] || HybridTemplate . signature ( ) )
147
+ "\n \n -- \n " <> ( assigns [ "signature" ] || HybridTemplate . text_signature ( ) )
148
148
149
149
case render_liquid ( body_with_signature , assigns ) do
150
150
{ :ok , text_body } ->
Original file line number Diff line number Diff line change @@ -102,6 +102,13 @@ defmodule Keila.Templates.HybridTemplate do
102
102
Powered by [Keila - OpenSource Newsletters](https://www.keila.io/)
103
103
"""
104
104
105
+ @ text_signature """
106
+ Unsubscribe:
107
+ {{ unsubscribe_link }}
108
+
109
+ Tihs newsletter is powered by Keila: https://www.keila.io
110
+ """
111
+
105
112
@ spec styles ( ) :: Keila.Templates.Css . t ( )
106
113
def styles ( ) do
107
114
@ styles
@@ -130,4 +137,8 @@ defmodule Keila.Templates.HybridTemplate do
130
137
def signature ( ) do
131
138
@ signature
132
139
end
140
+
141
+ def text_signature ( ) do
142
+ @ text_signature
143
+ end
133
144
end
You can’t perform that action at this time.
0 commit comments