ish_manager 0.1.8.469 → 0.1.8.470
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/ish_manager/application_mailer.rb +1 -1
- data/app/mailers/ish_manager/office_mailer.rb +14 -9
- data/app/views/ish_manager/email_campaigns/_form.haml +1 -1
- data/app/views/ish_manager/email_contexts/_form.haml +1 -1
- data/app/views/ish_manager/email_templates/_form.haml +5 -1
- data/app/views/ish_manager/email_templates/_index.haml +1 -0
- data/app/views/ish_manager/email_templates/_m20221201react.html.erb +2 -2
- data/app/views/ish_manager/email_templates/_m202309_ror4.html.erb +985 -0
- data/lib/ish_manager.rb +0 -2
- data/lib/tasks/office_tasks.rake +7 -15
- metadata +3 -4
- data/app/views/ish_manager/email_templates/done/_form.haml +0 -22
- data/app/views/ish_manager/email_templates/done/_form2.haml +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83591733d1b01247d332cf8f8530b2054de05f46cc11dba6869193a5b32a1ccb
|
4
|
+
data.tar.gz: 4f1443e9c20101dc1b24a7a889478b85933c95c4587e356849bbb49ccbd43711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1af535f9b4559c5c884741f743a5b6ca0b14bc59b409b7db34ce92d4de345648275ea3826b17f12b43fcad1ed828b6588d538ea3d78e3035a0fb4a6436cf4b4
|
7
|
+
data.tar.gz: 5c148eddff5913d73ec126c112801ef1881e868a796b90d8414e30b61012b66f55804bb09cd145f2f19c6b2f569919ca866729e6b2ef39dc79b5c712bdb48d51
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
class IshManager::OfficeMailer < IshManager::ApplicationMailer
|
3
|
-
default from: 'WasyaCo
|
3
|
+
default from: 'WasyaCo Mailer <no-reply@wco.com.de>'
|
4
4
|
|
5
5
|
## 2023-04-02 _vp_ Continue.
|
6
6
|
def send_context_email ctx_id
|
@@ -13,25 +13,30 @@ class IshManager::OfficeMailer < IshManager::ApplicationMailer
|
|
13
13
|
'utm_source' => @ctx.tmpl.slug,
|
14
14
|
}.map { |k, v| "#{k}=#{v}" }.join("&")
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
@domain = Rails.application.config.action_mailer.default_url_options[:host]
|
17
|
+
@origin = "https://#{Rails.application.config.action_mailer.default_url_options[:host]}"
|
18
|
+
|
19
|
+
renderer = ActionController::Base.new
|
20
|
+
renderer.instance_variable_set( :@ctx, @ctx )
|
21
|
+
renderer.instance_variable_set( :@lead, @ctx.lead )
|
22
|
+
renderer.instance_variable_set( :@utm_tracking_str, @utm_tracking_str )
|
23
|
+
|
24
|
+
eval( @ctx.tmpl.config_exe )
|
20
25
|
|
21
26
|
if 'plain' == @ctx.tmpl.layout
|
22
27
|
rendered_str = ERB.new( @ctx.body ).result( @ctx.get_binding )
|
23
28
|
else
|
24
|
-
rendered_str =
|
29
|
+
rendered_str = renderer.render_to_string("ish_manager/email_templates/_#{@ctx.tmpl.layout}")
|
25
30
|
end
|
26
31
|
@ctx.update({
|
27
32
|
rendered_str: rendered_str,
|
28
33
|
sent_at: Time.now.to_s,
|
29
34
|
})
|
30
35
|
|
31
|
-
mail( from:
|
32
|
-
to:
|
36
|
+
mail( from: @ctx.from_email,
|
37
|
+
to: @ctx.to_email,
|
33
38
|
subject: ERB.new( @ctx.subject ).result( @ctx.get_binding ),
|
34
|
-
body:
|
39
|
+
body: rendered_str,
|
35
40
|
content_type: "text/html" )
|
36
41
|
end
|
37
42
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
.field
|
23
23
|
= f.label "From"
|
24
|
-
= f.select :from_email, options_for_select(Ish::
|
24
|
+
= f.select :from_email, options_for_select(Ish::EmailTemplate.from_email_list, selected: campaign.from_email), {}, class: 'select2'
|
25
25
|
|
26
26
|
.actions
|
27
27
|
= f.submit 'Submit'
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
.field
|
14
14
|
= f.label "From"
|
15
|
-
= f.select :from_email, options_for_select(Ish::
|
15
|
+
= f.select :from_email, options_for_select(Ish::EmailTemplate.from_email_list, selected: ctx.from_email)
|
16
16
|
|
17
17
|
.field.flex-row
|
18
18
|
= f.label "To lead"
|
@@ -15,7 +15,7 @@
|
|
15
15
|
.col-md-4
|
16
16
|
.field
|
17
17
|
= f.label "From"
|
18
|
-
= f.select :from_email, options_for_select(Ish::
|
18
|
+
= f.select :from_email, options_for_select(Ish::EmailTemplate.from_email_list, selected: email_template.from_email)
|
19
19
|
.field.field-subject
|
20
20
|
= f.label :subject
|
21
21
|
= f.text_field :subject
|
@@ -39,6 +39,10 @@
|
|
39
39
|
-# .descr= render "ish_manager/email_templates/#{email_template.layout}", ctx: Ish::EmailContext.new, tmpl: email_template
|
40
40
|
%iframe{ src: email_template_iframe_path(email_template), width: '100%', height: '100%' }
|
41
41
|
|
42
|
+
.field
|
43
|
+
= f.label :config_json
|
44
|
+
= f.text_area :config_json
|
45
|
+
|
42
46
|
.field
|
43
47
|
= f.label :config_exe
|
44
48
|
= f.text_area :config_exe
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
%h3.center.collapse-expand#emailTemplatesIndex
|
5
5
|
Email Templates (#{Ish::EmailTemplate.all.count})
|
6
|
+
= link_to '[+]', new_email_template_path
|
6
7
|
|
7
8
|
= paginate @templates, :param_name => :templates_page, :views_prefix => 'ish_manager'
|
8
9
|
.email-templates-index.max-width
|
@@ -840,7 +840,7 @@
|
|
840
840
|
<td align="center" valign="middle" class="mcnButtonContent"
|
841
841
|
style="font-family: Helvetica; font-size: 18px; padding: 18px;">
|
842
842
|
<a class="mcnButton " title="Wasya Co Project Intake for ReactJs Development"
|
843
|
-
href="https://
|
843
|
+
href="https://wasyaco.com/contact-us-2/" target="_blank"
|
844
844
|
style="font-weight: bold;letter-spacing: -0.5px;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;"
|
845
845
|
>Tell us About your Project!</a>
|
846
846
|
</td>
|
@@ -1040,7 +1040,7 @@
|
|
1040
1040
|
style="font-family: Helvetica; font-size: 18px;">
|
1041
1041
|
<a class="mcnButton "
|
1042
1042
|
title="Wasya Co Project Intake for ReactJs Development"
|
1043
|
-
href="https://
|
1043
|
+
href="https://wasyaco.com/our-work/" target="_blank"
|
1044
1044
|
style="padding: 18px; font-weight: bold;letter-spacing: -0.5px;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;"
|
1045
1045
|
>See Our Successful <br />ReactJs Deliveries</a>
|
1046
1046
|
</td>
|
@@ -0,0 +1,985 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
3
|
+
xmlns:o="urn:schemas-microsoft-com:office:office">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<!--[if gte mso 15]>
|
7
|
+
<xml>
|
8
|
+
<o:OfficeDocumentSettings>
|
9
|
+
<o:AllowPNG/>
|
10
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
11
|
+
</o:OfficeDocumentSettings>
|
12
|
+
</xml>
|
13
|
+
<![endif]-->
|
14
|
+
<meta charset="UTF-8">
|
15
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
16
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
17
|
+
<title>Wasya Co offers exceptional deployment & development services in nodejs and a variety of other software stacks.</title>
|
18
|
+
|
19
|
+
<style type="text/css">
|
20
|
+
p {
|
21
|
+
margin: 10px 0;
|
22
|
+
padding: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
table {
|
26
|
+
border-collapse: collapse;
|
27
|
+
}
|
28
|
+
|
29
|
+
h1,
|
30
|
+
h2,
|
31
|
+
h3,
|
32
|
+
h4,
|
33
|
+
h5,
|
34
|
+
h6 {
|
35
|
+
display: block;
|
36
|
+
margin: 0;
|
37
|
+
padding: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
img,
|
41
|
+
a img {
|
42
|
+
border: 0;
|
43
|
+
height: auto;
|
44
|
+
outline: none;
|
45
|
+
text-decoration: none;
|
46
|
+
}
|
47
|
+
|
48
|
+
body,
|
49
|
+
#bodyTable,
|
50
|
+
#bodyCell {
|
51
|
+
height: 100%;
|
52
|
+
margin: 0;
|
53
|
+
padding: 0;
|
54
|
+
width: 100%;
|
55
|
+
}
|
56
|
+
|
57
|
+
.mcnPreviewText {
|
58
|
+
display: none !important;
|
59
|
+
}
|
60
|
+
|
61
|
+
#outlook a {
|
62
|
+
padding: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
img {
|
66
|
+
-ms-interpolation-mode: bicubic;
|
67
|
+
}
|
68
|
+
|
69
|
+
table {
|
70
|
+
mso-table-lspace: 0pt;
|
71
|
+
mso-table-rspace: 0pt;
|
72
|
+
}
|
73
|
+
|
74
|
+
.ReadMsgBody {
|
75
|
+
width: 100%;
|
76
|
+
}
|
77
|
+
|
78
|
+
.ExternalClass {
|
79
|
+
width: 100%;
|
80
|
+
}
|
81
|
+
|
82
|
+
p,
|
83
|
+
a,
|
84
|
+
li,
|
85
|
+
td,
|
86
|
+
blockquote {
|
87
|
+
mso-line-height-rule: exactly;
|
88
|
+
}
|
89
|
+
|
90
|
+
a[href^=tel],
|
91
|
+
a[href^=sms] {
|
92
|
+
color: inherit;
|
93
|
+
cursor: default;
|
94
|
+
text-decoration: none;
|
95
|
+
}
|
96
|
+
|
97
|
+
p,
|
98
|
+
a,
|
99
|
+
li,
|
100
|
+
td,
|
101
|
+
body,
|
102
|
+
table,
|
103
|
+
blockquote {
|
104
|
+
-ms-text-size-adjust: 100%;
|
105
|
+
-webkit-text-size-adjust: 100%;
|
106
|
+
}
|
107
|
+
|
108
|
+
.ExternalClass,
|
109
|
+
.ExternalClass p,
|
110
|
+
.ExternalClass td,
|
111
|
+
.ExternalClass div,
|
112
|
+
.ExternalClass span,
|
113
|
+
.ExternalClass font {
|
114
|
+
line-height: 100%;
|
115
|
+
}
|
116
|
+
|
117
|
+
a[x-apple-data-detectors] {
|
118
|
+
color: inherit !important;
|
119
|
+
text-decoration: none !important;
|
120
|
+
font-size: inherit !important;
|
121
|
+
font-family: inherit !important;
|
122
|
+
font-weight: inherit !important;
|
123
|
+
line-height: inherit !important;
|
124
|
+
}
|
125
|
+
|
126
|
+
#bodyCell {
|
127
|
+
padding: 10px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.templateContainer {
|
131
|
+
max-width: 600px !important;
|
132
|
+
}
|
133
|
+
|
134
|
+
a.mcnButton {
|
135
|
+
display: block;
|
136
|
+
}
|
137
|
+
|
138
|
+
.mcnImage,
|
139
|
+
.mcnRetinaImage {
|
140
|
+
vertical-align: bottom;
|
141
|
+
}
|
142
|
+
|
143
|
+
.mcnTextContent {
|
144
|
+
word-break: break-word;
|
145
|
+
}
|
146
|
+
|
147
|
+
.mcnTextContent img {
|
148
|
+
height: auto !important;
|
149
|
+
}
|
150
|
+
|
151
|
+
.mcnDividerBlock {
|
152
|
+
table-layout: fixed !important;
|
153
|
+
}
|
154
|
+
|
155
|
+
/*
|
156
|
+
@tab Page
|
157
|
+
@section Background Style
|
158
|
+
@tip Set the background color and top border for your email. You may want to choose colors that match your company's branding.
|
159
|
+
*/
|
160
|
+
body,
|
161
|
+
#bodyTable {
|
162
|
+
/*@editable*/
|
163
|
+
background-color: #FAFAFA;
|
164
|
+
}
|
165
|
+
|
166
|
+
/*
|
167
|
+
@tab Page
|
168
|
+
@section Background Style
|
169
|
+
@tip Set the background color and top border for your email. You may want to choose colors that match your company's branding.
|
170
|
+
*/
|
171
|
+
#bodyCell {
|
172
|
+
/*@editable*/
|
173
|
+
border-top: 0;
|
174
|
+
}
|
175
|
+
|
176
|
+
/*
|
177
|
+
@tab Page
|
178
|
+
@section Email Border
|
179
|
+
@tip Set the border for your email.
|
180
|
+
*/
|
181
|
+
.templateContainer {
|
182
|
+
/*@editable*/
|
183
|
+
border: 0;
|
184
|
+
}
|
185
|
+
|
186
|
+
/*
|
187
|
+
@tab Page
|
188
|
+
@section Heading 1
|
189
|
+
@tip Set the styling for all first-level headings in your emails. These should be the largest of your headings.
|
190
|
+
@style heading 1
|
191
|
+
*/
|
192
|
+
h1 {
|
193
|
+
/*@editable*/
|
194
|
+
color: #202020;
|
195
|
+
/*@editable*/
|
196
|
+
font-family: Helvetica;
|
197
|
+
/*@editable*/
|
198
|
+
font-size: 26px;
|
199
|
+
/*@editable*/
|
200
|
+
font-style: normal;
|
201
|
+
/*@editable*/
|
202
|
+
font-weight: bold;
|
203
|
+
/*@editable*/
|
204
|
+
line-height: 125%;
|
205
|
+
/*@editable*/
|
206
|
+
letter-spacing: normal;
|
207
|
+
}
|
208
|
+
|
209
|
+
/*
|
210
|
+
@tab Page
|
211
|
+
@section Heading 2
|
212
|
+
@tip Set the styling for all second-level headings in your emails.
|
213
|
+
@style heading 2
|
214
|
+
*/
|
215
|
+
h2 {
|
216
|
+
/*@editable*/
|
217
|
+
color: #202020;
|
218
|
+
/*@editable*/
|
219
|
+
font-family: Helvetica;
|
220
|
+
/*@editable*/
|
221
|
+
font-size: 22px;
|
222
|
+
/*@editable*/
|
223
|
+
font-style: normal;
|
224
|
+
/*@editable*/
|
225
|
+
font-weight: bold;
|
226
|
+
/*@editable*/
|
227
|
+
line-height: 125%;
|
228
|
+
/*@editable*/
|
229
|
+
letter-spacing: normal;
|
230
|
+
/*@editable*/
|
231
|
+
text-align: left;
|
232
|
+
}
|
233
|
+
|
234
|
+
/*
|
235
|
+
@tab Page
|
236
|
+
@section Heading 3
|
237
|
+
@tip Set the styling for all third-level headings in your emails.
|
238
|
+
@style heading 3
|
239
|
+
*/
|
240
|
+
h3 {
|
241
|
+
/*@editable*/
|
242
|
+
color: #202020;
|
243
|
+
/*@editable*/
|
244
|
+
font-family: Helvetica;
|
245
|
+
/*@editable*/
|
246
|
+
font-size: 20px;
|
247
|
+
/*@editable*/
|
248
|
+
font-style: normal;
|
249
|
+
/*@editable*/
|
250
|
+
font-weight: bold;
|
251
|
+
/*@editable*/
|
252
|
+
line-height: 125%;
|
253
|
+
/*@editable*/
|
254
|
+
letter-spacing: normal;
|
255
|
+
/*@editable*/
|
256
|
+
text-align: left;
|
257
|
+
}
|
258
|
+
|
259
|
+
/*
|
260
|
+
@tab Page
|
261
|
+
@section Heading 4
|
262
|
+
@tip Set the styling for all fourth-level headings in your emails. These should be the smallest of your headings.
|
263
|
+
@style heading 4
|
264
|
+
*/
|
265
|
+
h4 {
|
266
|
+
/*@editable*/
|
267
|
+
color: #202020;
|
268
|
+
/*@editable*/
|
269
|
+
font-family: Helvetica;
|
270
|
+
/*@editable*/
|
271
|
+
font-size: 18px;
|
272
|
+
/*@editable*/
|
273
|
+
font-style: normal;
|
274
|
+
/*@editable*/
|
275
|
+
font-weight: bold;
|
276
|
+
/*@editable*/
|
277
|
+
line-height: 125%;
|
278
|
+
/*@editable*/
|
279
|
+
letter-spacing: normal;
|
280
|
+
}
|
281
|
+
|
282
|
+
/*
|
283
|
+
@tab Preheader
|
284
|
+
@section Preheader Style
|
285
|
+
@tip Set the background color and borders for your email's preheader area.
|
286
|
+
*/
|
287
|
+
#templatePreheader {
|
288
|
+
/*@editable*/
|
289
|
+
background-color: #FAFAFA;
|
290
|
+
/*@editable*/
|
291
|
+
background-image: none;
|
292
|
+
/*@editable*/
|
293
|
+
background-repeat: no-repeat;
|
294
|
+
/*@editable*/
|
295
|
+
background-position: center;
|
296
|
+
/*@editable*/
|
297
|
+
background-size: cover;
|
298
|
+
/*@editable*/
|
299
|
+
border-top: 0;
|
300
|
+
/*@editable*/
|
301
|
+
border-bottom: 0;
|
302
|
+
/*@editable*/
|
303
|
+
padding-top: 9px;
|
304
|
+
/*@editable*/
|
305
|
+
padding-bottom: 9px;
|
306
|
+
}
|
307
|
+
|
308
|
+
/*
|
309
|
+
@tab Preheader
|
310
|
+
@section Preheader Text
|
311
|
+
@tip Set the styling for your email's preheader text. Choose a size and color that is easy to read.
|
312
|
+
*/
|
313
|
+
#templatePreheader .mcnTextContent,
|
314
|
+
#templatePreheader .mcnTextContent p {
|
315
|
+
/*@editable*/
|
316
|
+
color: #656565;
|
317
|
+
/*@editable*/
|
318
|
+
font-family: Helvetica;
|
319
|
+
/*@editable*/
|
320
|
+
font-size: 12px;
|
321
|
+
/*@editable*/
|
322
|
+
line-height: 150%;
|
323
|
+
/*@editable*/
|
324
|
+
text-align: left;
|
325
|
+
}
|
326
|
+
|
327
|
+
/*
|
328
|
+
@tab Preheader
|
329
|
+
@section Preheader Link
|
330
|
+
@tip Set the styling for your email's preheader links. Choose a color that helps them stand out from your text.
|
331
|
+
*/
|
332
|
+
#templatePreheader .mcnTextContent a,
|
333
|
+
#templatePreheader .mcnTextContent p a {
|
334
|
+
/*@editable*/
|
335
|
+
color: #656565;
|
336
|
+
/*@editable*/
|
337
|
+
font-weight: normal;
|
338
|
+
/*@editable*/
|
339
|
+
text-decoration: underline;
|
340
|
+
}
|
341
|
+
|
342
|
+
/*
|
343
|
+
@tab Header
|
344
|
+
@section Header Style
|
345
|
+
@tip Set the background color and borders for your email's header area.
|
346
|
+
*/
|
347
|
+
#templateHeader {
|
348
|
+
/*@editable*/
|
349
|
+
background-color: #FFFFFF;
|
350
|
+
/*@editable*/
|
351
|
+
background-image: none;
|
352
|
+
/*@editable*/
|
353
|
+
background-repeat: no-repeat;
|
354
|
+
/*@editable*/
|
355
|
+
background-position: center;
|
356
|
+
/*@editable*/
|
357
|
+
background-size: cover;
|
358
|
+
/*@editable*/
|
359
|
+
border-top: 0;
|
360
|
+
/*@editable*/
|
361
|
+
border-bottom: 0;
|
362
|
+
/*@editable*/
|
363
|
+
padding-top: 9px;
|
364
|
+
/*@editable*/
|
365
|
+
padding-bottom: 0;
|
366
|
+
}
|
367
|
+
|
368
|
+
/*
|
369
|
+
@tab Header
|
370
|
+
@section Header Text
|
371
|
+
@tip Set the styling for your email's header text. Choose a size and color that is easy to read.
|
372
|
+
*/
|
373
|
+
#templateHeader .mcnTextContent,
|
374
|
+
#templateHeader .mcnTextContent p {
|
375
|
+
/*@editable*/
|
376
|
+
color: #202020;
|
377
|
+
/*@editable*/
|
378
|
+
font-family: Helvetica;
|
379
|
+
/*@editable*/
|
380
|
+
font-size: 16px;
|
381
|
+
/*@editable*/
|
382
|
+
line-height: 150%;
|
383
|
+
/*@editable*/
|
384
|
+
text-align: left;
|
385
|
+
}
|
386
|
+
|
387
|
+
/*
|
388
|
+
@tab Header
|
389
|
+
@section Header Link
|
390
|
+
@tip Set the styling for your email's header links. Choose a color that helps them stand out from your text.
|
391
|
+
*/
|
392
|
+
#templateHeader .mcnTextContent a,
|
393
|
+
#templateHeader .mcnTextContent p a {
|
394
|
+
/*@editable*/
|
395
|
+
color: #007C89;
|
396
|
+
/*@editable*/
|
397
|
+
font-weight: normal;
|
398
|
+
/*@editable*/
|
399
|
+
text-decoration: underline;
|
400
|
+
}
|
401
|
+
|
402
|
+
/*
|
403
|
+
@tab Body
|
404
|
+
@section Body Style
|
405
|
+
@tip Set the background color and borders for your email's body area.
|
406
|
+
*/
|
407
|
+
#templateBody {
|
408
|
+
/*@editable*/
|
409
|
+
background-color: #FFFFFF;
|
410
|
+
/*@editable*/
|
411
|
+
background-image: none;
|
412
|
+
/*@editable*/
|
413
|
+
background-repeat: no-repeat;
|
414
|
+
/*@editable*/
|
415
|
+
background-position: center;
|
416
|
+
/*@editable*/
|
417
|
+
background-size: cover;
|
418
|
+
/*@editable*/
|
419
|
+
border-top: 0;
|
420
|
+
/*@editable*/
|
421
|
+
border-bottom: 2px solid #EAEAEA;
|
422
|
+
/*@editable*/
|
423
|
+
padding-top: 0;
|
424
|
+
/*@editable*/
|
425
|
+
padding-bottom: 9px;
|
426
|
+
}
|
427
|
+
|
428
|
+
/*
|
429
|
+
@tab Body
|
430
|
+
@section Body Text
|
431
|
+
@tip Set the styling for your email's body text. Choose a size and color that is easy to read.
|
432
|
+
*/
|
433
|
+
#templateBody .mcnTextContent,
|
434
|
+
#templateBody .mcnTextContent p {
|
435
|
+
/*@editable*/
|
436
|
+
color: #202020;
|
437
|
+
/*@editable*/
|
438
|
+
font-family: Helvetica;
|
439
|
+
/*@editable*/
|
440
|
+
font-size: 16px;
|
441
|
+
/*@editable*/
|
442
|
+
line-height: 150%;
|
443
|
+
/*@editable*/
|
444
|
+
text-align: left;
|
445
|
+
}
|
446
|
+
|
447
|
+
/*
|
448
|
+
@tab Body
|
449
|
+
@section Body Link
|
450
|
+
@tip Set the styling for your email's body links. Choose a color that helps them stand out from your text.
|
451
|
+
*/
|
452
|
+
#templateBody .mcnTextContent a,
|
453
|
+
#templateBody .mcnTextContent p a {
|
454
|
+
/*@editable*/
|
455
|
+
color: #007C89;
|
456
|
+
/*@editable*/
|
457
|
+
font-weight: normal;
|
458
|
+
/*@editable*/
|
459
|
+
text-decoration: underline;
|
460
|
+
}
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
/* templateFooter */
|
467
|
+
#templateFooter {
|
468
|
+
background-color: #FAFAFA;
|
469
|
+
background-image: none;
|
470
|
+
background-repeat: no-repeat;
|
471
|
+
background-position: center;
|
472
|
+
background-size: cover;
|
473
|
+
border-top: 0;
|
474
|
+
border-bottom: 0;
|
475
|
+
padding-top: 9px;
|
476
|
+
padding-bottom: 9px;
|
477
|
+
}
|
478
|
+
#templateFooter .mcnTextContent,
|
479
|
+
#templateFooter .mcnTextContent p {
|
480
|
+
color: #656565;
|
481
|
+
font-family: Helvetica;
|
482
|
+
font-size: 12px;
|
483
|
+
line-height: 150%;
|
484
|
+
text-align: center;
|
485
|
+
}
|
486
|
+
#templateFooter .mcnTextContent a,
|
487
|
+
#templateFooter .mcnTextContent p a {
|
488
|
+
color: #656565;
|
489
|
+
font-weight: normal;
|
490
|
+
text-decoration: underline;
|
491
|
+
}
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
@media only screen and (min-width:768px) {
|
502
|
+
.templateContainer {
|
503
|
+
width: 600px !important;
|
504
|
+
}
|
505
|
+
|
506
|
+
}
|
507
|
+
|
508
|
+
@media only screen and (max-width: 480px) {
|
509
|
+
|
510
|
+
body,
|
511
|
+
table,
|
512
|
+
td,
|
513
|
+
p,
|
514
|
+
a,
|
515
|
+
li,
|
516
|
+
blockquote {
|
517
|
+
-webkit-text-size-adjust: none !important;
|
518
|
+
}
|
519
|
+
|
520
|
+
}
|
521
|
+
|
522
|
+
@media only screen and (max-width: 480px) {
|
523
|
+
body {
|
524
|
+
width: 100% !important;
|
525
|
+
min-width: 100% !important;
|
526
|
+
}
|
527
|
+
|
528
|
+
}
|
529
|
+
|
530
|
+
@media only screen and (max-width: 480px) {
|
531
|
+
.mcnRetinaImage {
|
532
|
+
max-width: 100% !important;
|
533
|
+
}
|
534
|
+
|
535
|
+
}
|
536
|
+
|
537
|
+
@media only screen and (max-width: 480px) {
|
538
|
+
.mcnImage {
|
539
|
+
width: 100% !important;
|
540
|
+
}
|
541
|
+
|
542
|
+
}
|
543
|
+
|
544
|
+
@media only screen and (max-width: 480px) {
|
545
|
+
|
546
|
+
.mcnCartContainer,
|
547
|
+
.mcnCaptionTopContent,
|
548
|
+
.mcnRecContentContainer,
|
549
|
+
.mcnCaptionBottomContent,
|
550
|
+
.mcnTextContentContainer,
|
551
|
+
.mcnBoxedTextContentContainer,
|
552
|
+
.mcnImageGroupContentContainer,
|
553
|
+
.mcnCaptionLeftTextContentContainer,
|
554
|
+
.mcnCaptionRightTextContentContainer,
|
555
|
+
.mcnCaptionLeftImageContentContainer,
|
556
|
+
.mcnCaptionRightImageContentContainer,
|
557
|
+
.mcnImageCardLeftTextContentContainer,
|
558
|
+
.mcnImageCardRightTextContentContainer,
|
559
|
+
.mcnImageCardLeftImageContentContainer,
|
560
|
+
.mcnImageCardRightImageContentContainer {
|
561
|
+
max-width: 100% !important;
|
562
|
+
width: 100% !important;
|
563
|
+
}
|
564
|
+
|
565
|
+
}
|
566
|
+
|
567
|
+
@media only screen and (max-width: 480px) {
|
568
|
+
.mcnBoxedTextContentContainer {
|
569
|
+
min-width: 100% !important;
|
570
|
+
}
|
571
|
+
|
572
|
+
}
|
573
|
+
|
574
|
+
@media only screen and (max-width: 480px) {
|
575
|
+
.mcnImageGroupContent {
|
576
|
+
padding: 9px !important;
|
577
|
+
}
|
578
|
+
|
579
|
+
}
|
580
|
+
|
581
|
+
@media only screen and (max-width: 480px) {
|
582
|
+
|
583
|
+
.mcnCaptionLeftContentOuter .mcnTextContent,
|
584
|
+
.mcnCaptionRightContentOuter .mcnTextContent {
|
585
|
+
padding-top: 9px !important;
|
586
|
+
}
|
587
|
+
|
588
|
+
}
|
589
|
+
|
590
|
+
@media only screen and (max-width: 480px) {
|
591
|
+
|
592
|
+
.mcnImageCardTopImageContent,
|
593
|
+
.mcnCaptionBottomContent:last-child .mcnCaptionBottomImageContent,
|
594
|
+
.mcnCaptionBlockInner .mcnCaptionTopContent:last-child .mcnTextContent {
|
595
|
+
padding-top: 18px !important;
|
596
|
+
}
|
597
|
+
|
598
|
+
}
|
599
|
+
|
600
|
+
@media only screen and (max-width: 480px) {
|
601
|
+
.mcnImageCardBottomImageContent {
|
602
|
+
padding-bottom: 9px !important;
|
603
|
+
}
|
604
|
+
|
605
|
+
}
|
606
|
+
|
607
|
+
@media only screen and (max-width: 480px) {
|
608
|
+
.mcnImageGroupBlockInner {
|
609
|
+
padding-top: 0 !important;
|
610
|
+
padding-bottom: 0 !important;
|
611
|
+
}
|
612
|
+
|
613
|
+
}
|
614
|
+
|
615
|
+
@media only screen and (max-width: 480px) {
|
616
|
+
.mcnImageGroupBlockOuter {
|
617
|
+
padding-top: 9px !important;
|
618
|
+
padding-bottom: 9px !important;
|
619
|
+
}
|
620
|
+
|
621
|
+
}
|
622
|
+
|
623
|
+
@media only screen and (max-width: 480px) {
|
624
|
+
|
625
|
+
.mcnTextContent,
|
626
|
+
.mcnBoxedTextContentColumn {
|
627
|
+
padding-right: 18px !important;
|
628
|
+
padding-left: 18px !important;
|
629
|
+
}
|
630
|
+
|
631
|
+
}
|
632
|
+
|
633
|
+
@media only screen and (max-width: 480px) {
|
634
|
+
|
635
|
+
.mcnImageCardLeftImageContent,
|
636
|
+
.mcnImageCardRightImageContent {
|
637
|
+
padding-right: 18px !important;
|
638
|
+
padding-bottom: 0 !important;
|
639
|
+
padding-left: 18px !important;
|
640
|
+
}
|
641
|
+
|
642
|
+
}
|
643
|
+
|
644
|
+
@media only screen and (max-width: 480px) {
|
645
|
+
.mcpreview-image-uploader {
|
646
|
+
display: none !important;
|
647
|
+
width: 100% !important;
|
648
|
+
}
|
649
|
+
|
650
|
+
}
|
651
|
+
|
652
|
+
@media only screen and (max-width: 480px) {
|
653
|
+
|
654
|
+
/*
|
655
|
+
@tab Mobile Styles
|
656
|
+
@section Heading 1
|
657
|
+
@tip Make the first-level headings larger in size for better readability on small screens.
|
658
|
+
*/
|
659
|
+
h1 {
|
660
|
+
/*@editable*/
|
661
|
+
font-size: 22px !important;
|
662
|
+
/*@editable*/
|
663
|
+
line-height: 125% !important;
|
664
|
+
}
|
665
|
+
|
666
|
+
}
|
667
|
+
|
668
|
+
@media only screen and (max-width: 480px) {
|
669
|
+
|
670
|
+
/*
|
671
|
+
@tab Mobile Styles
|
672
|
+
@section Heading 2
|
673
|
+
@tip Make the second-level headings larger in size for better readability on small screens.
|
674
|
+
*/
|
675
|
+
h2 {
|
676
|
+
/*@editable*/
|
677
|
+
font-size: 20px !important;
|
678
|
+
/*@editable*/
|
679
|
+
line-height: 125% !important;
|
680
|
+
}
|
681
|
+
|
682
|
+
}
|
683
|
+
|
684
|
+
@media only screen and (max-width: 480px) {
|
685
|
+
|
686
|
+
/*
|
687
|
+
@tab Mobile Styles
|
688
|
+
@section Heading 3
|
689
|
+
@tip Make the third-level headings larger in size for better readability on small screens.
|
690
|
+
*/
|
691
|
+
h3 {
|
692
|
+
/*@editable*/
|
693
|
+
font-size: 18px !important;
|
694
|
+
/*@editable*/
|
695
|
+
line-height: 125% !important;
|
696
|
+
}
|
697
|
+
|
698
|
+
}
|
699
|
+
|
700
|
+
@media only screen and (max-width: 480px) {
|
701
|
+
|
702
|
+
/*
|
703
|
+
@tab Mobile Styles
|
704
|
+
@section Heading 4
|
705
|
+
@tip Make the fourth-level headings larger in size for better readability on small screens.
|
706
|
+
*/
|
707
|
+
h4 {
|
708
|
+
/*@editable*/
|
709
|
+
font-size: 16px !important;
|
710
|
+
/*@editable*/
|
711
|
+
line-height: 150% !important;
|
712
|
+
}
|
713
|
+
|
714
|
+
}
|
715
|
+
|
716
|
+
@media only screen and (max-width: 480px) {
|
717
|
+
|
718
|
+
/*
|
719
|
+
@tab Mobile Styles
|
720
|
+
@section Boxed Text
|
721
|
+
@tip Make the boxed text larger in size for better readability on small screens. We recommend a font size of at least 16px.
|
722
|
+
*/
|
723
|
+
.mcnBoxedTextContentContainer .mcnTextContent,
|
724
|
+
.mcnBoxedTextContentContainer .mcnTextContent p {
|
725
|
+
/*@editable*/
|
726
|
+
font-size: 14px !important;
|
727
|
+
/*@editable*/
|
728
|
+
line-height: 150% !important;
|
729
|
+
}
|
730
|
+
|
731
|
+
}
|
732
|
+
|
733
|
+
@media only screen and (max-width: 480px) {
|
734
|
+
|
735
|
+
/*
|
736
|
+
@tab Mobile Styles
|
737
|
+
@section Preheader Visibility
|
738
|
+
@tip Set the visibility of the email's preheader on small screens. You can hide it to save space.
|
739
|
+
*/
|
740
|
+
#templatePreheader {
|
741
|
+
/*@editable*/
|
742
|
+
display: block !important;
|
743
|
+
}
|
744
|
+
|
745
|
+
}
|
746
|
+
|
747
|
+
@media only screen and (max-width: 480px) {
|
748
|
+
|
749
|
+
/*
|
750
|
+
@tab Mobile Styles
|
751
|
+
@section Preheader Text
|
752
|
+
@tip Make the preheader text larger in size for better readability on small screens.
|
753
|
+
*/
|
754
|
+
#templatePreheader .mcnTextContent,
|
755
|
+
#templatePreheader .mcnTextContent p {
|
756
|
+
/*@editable*/
|
757
|
+
font-size: 14px !important;
|
758
|
+
/*@editable*/
|
759
|
+
line-height: 150% !important;
|
760
|
+
}
|
761
|
+
|
762
|
+
}
|
763
|
+
|
764
|
+
@media only screen and (max-width: 480px) {
|
765
|
+
|
766
|
+
/*
|
767
|
+
@tab Mobile Styles
|
768
|
+
@section Header Text
|
769
|
+
@tip Make the header text larger in size for better readability on small screens.
|
770
|
+
*/
|
771
|
+
#templateHeader .mcnTextContent,
|
772
|
+
#templateHeader .mcnTextContent p {
|
773
|
+
/*@editable*/
|
774
|
+
font-size: 16px !important;
|
775
|
+
/*@editable*/
|
776
|
+
line-height: 150% !important;
|
777
|
+
}
|
778
|
+
|
779
|
+
}
|
780
|
+
|
781
|
+
@media only screen and (max-width: 480px) {
|
782
|
+
|
783
|
+
/*
|
784
|
+
@tab Mobile Styles
|
785
|
+
@section Body Text
|
786
|
+
@tip Make the body text larger in size for better readability on small screens. We recommend a font size of at least 16px.
|
787
|
+
*/
|
788
|
+
#templateBody .mcnTextContent,
|
789
|
+
#templateBody .mcnTextContent p {
|
790
|
+
/*@editable*/
|
791
|
+
font-size: 16px !important;
|
792
|
+
/*@editable*/
|
793
|
+
line-height: 150% !important;
|
794
|
+
}
|
795
|
+
|
796
|
+
}
|
797
|
+
|
798
|
+
@media only screen and (max-width: 480px) {
|
799
|
+
|
800
|
+
/*
|
801
|
+
@tab Mobile Styles
|
802
|
+
@section Footer Text
|
803
|
+
@tip Make the footer content text larger in size for better readability on small screens.
|
804
|
+
*/
|
805
|
+
#templateFooter .mcnTextContent,
|
806
|
+
#templateFooter .mcnTextContent p {
|
807
|
+
/*@editable*/
|
808
|
+
font-size: 14px !important;
|
809
|
+
/*@editable*/
|
810
|
+
line-height: 150% !important;
|
811
|
+
}
|
812
|
+
|
813
|
+
}
|
814
|
+
</style>
|
815
|
+
</head>
|
816
|
+
|
817
|
+
<body>
|
818
|
+
<!--*|IF:MC_PREVIEW_TEXT|*-->
|
819
|
+
<!--[if !gte mso 9]><!----><span class="mcnPreviewText"
|
820
|
+
style="display:none; font-size:0px; line-height:0px; max-height:0px; max-width:0px; opacity:0; overflow:hidden; visibility:hidden; mso-hide:all;"
|
821
|
+
>Wasya
|
822
|
+
Co offers exceptional deployment & development services in nodejs and a variety of other software stacks.</span>
|
823
|
+
<!--<![endif]-->
|
824
|
+
<!--*|END:IF|*-->
|
825
|
+
<center>
|
826
|
+
<br />
|
827
|
+
|
828
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable">
|
829
|
+
<tr>
|
830
|
+
<td align="center" valign="top" id="bodyCell">
|
831
|
+
|
832
|
+
<!--[if (gte mso 9)|(IE)]>
|
833
|
+
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
|
834
|
+
<tr>
|
835
|
+
<td align="center" valign="top" width="600" style="width:600px;">
|
836
|
+
<![endif]-->
|
837
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer">
|
838
|
+
|
839
|
+
<tr>
|
840
|
+
<td valign="top" id="templateBody">
|
841
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock"
|
842
|
+
style="min-width:100%;">
|
843
|
+
|
844
|
+
|
845
|
+
<tbody class="mcnTextBlockOuter">
|
846
|
+
<tr>
|
847
|
+
<td valign="top" class="mcnTextBlockInner" style="padding-top:9px;">
|
848
|
+
<!--[if mso]>
|
849
|
+
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
|
850
|
+
<tr>
|
851
|
+
<![endif]-->
|
852
|
+
|
853
|
+
<!--[if mso]>
|
854
|
+
<td valign="top" width="600" style="width:600px;">
|
855
|
+
<![endif]-->
|
856
|
+
<table border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;"
|
857
|
+
width="100%" class="mcnTextContentContainer">
|
858
|
+
<tbody>
|
859
|
+
<tr>
|
860
|
+
|
861
|
+
<td align="right" valign="top" class="mcnTextContent"
|
862
|
+
style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;">
|
863
|
+
|
864
|
+
<table cellpadding="0" cellspacing="0" width="100%">
|
865
|
+
<tr>
|
866
|
+
<td align="center">
|
867
|
+
<br />
|
868
|
+
<img
|
869
|
+
src="https://d15g8hc4183yn4.cloudfront.net/wp-content/uploads/2022/09/29185755/259x66-WasyaCo-Logo-YellowShadow.png"
|
870
|
+
alt="Wasya Co [logo]" />
|
871
|
+
</td>
|
872
|
+
</tr>
|
873
|
+
</table>
|
874
|
+
<br /><br />
|
875
|
+
|
876
|
+
<table cellpadding="0" cellspacing="0" width="100%">
|
877
|
+
<tr>
|
878
|
+
<td align="right">
|
879
|
+
<img src="https://wasya.co/wp-content/uploads/2023/09/250x250-girl-pointing-1.png"
|
880
|
+
alt="Good-looking office assistant" />
|
881
|
+
</td>
|
882
|
+
<td align="right" valign="top">
|
883
|
+
<br />
|
884
|
+
<h1>Ruby on Rails</h1>
|
885
|
+
<h4><i>Web Application Development</i></h4>
|
886
|
+
|
887
|
+
</td>
|
888
|
+
</tr>
|
889
|
+
</table>
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
<br />
|
895
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0">
|
896
|
+
<tbody>
|
897
|
+
<tr>
|
898
|
+
<td>
|
899
|
+
<p>Wasya Co offers exceptional deployment & development services <br />
|
900
|
+
in Ruby on Rails and a variety of other software stacks.</p>
|
901
|
+
</td>
|
902
|
+
</tr>
|
903
|
+
</tbody>
|
904
|
+
</table>
|
905
|
+
|
906
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnButtonBlock"
|
907
|
+
style="min-width:100%;">
|
908
|
+
<tbody class="mcnButtonBlockOuter">
|
909
|
+
<tr>
|
910
|
+
<td
|
911
|
+
style="padding-top:0; padding-right:18px; padding-bottom:18px; padding-left:18px;"
|
912
|
+
valign="top" align="right" class="mcnButtonBlockInner">
|
913
|
+
<table border="0" cellpadding="0" cellspacing="0"
|
914
|
+
class="mcnButtonContentContainer"
|
915
|
+
style="border-collapse: separate !important;border-radius: 3px;background-color: #009FC7;">
|
916
|
+
<tbody>
|
917
|
+
<tr>
|
918
|
+
<td align="right" valign="middle" class="mcnButtonContent"
|
919
|
+
style="font-family: Helvetica; font-size: 18px; padding: 18px;">
|
920
|
+
|
921
|
+
|
922
|
+
<a class="mcnButton " title="Read More"
|
923
|
+
href='<%= obfuscate "#{@origin}#{@button_path}?#{@utm_tracking_str}" %>' target="_blank"
|
924
|
+
style="font-weight: bold;letter-spacing: -0.5px;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;"
|
925
|
+
>Learn More</a>
|
926
|
+
</td>
|
927
|
+
</tr>
|
928
|
+
</tbody>
|
929
|
+
</table>
|
930
|
+
</td>
|
931
|
+
<td width="50"></td>
|
932
|
+
</tr>
|
933
|
+
</tbody>
|
934
|
+
</table>
|
935
|
+
|
936
|
+
|
937
|
+
</td>
|
938
|
+
</tr>
|
939
|
+
</tbody>
|
940
|
+
</table>
|
941
|
+
<!--[if mso]>
|
942
|
+
</td>
|
943
|
+
<![endif]-->
|
944
|
+
|
945
|
+
<!--[if mso]>
|
946
|
+
</tr>
|
947
|
+
</table>
|
948
|
+
<![endif]-->
|
949
|
+
</td>
|
950
|
+
</tr>
|
951
|
+
</tbody>
|
952
|
+
</table>
|
953
|
+
</td>
|
954
|
+
</tr>
|
955
|
+
<tr>
|
956
|
+
<td valign="top" id="templateFooter">
|
957
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowBlock"
|
958
|
+
style="min-width:100%;">
|
959
|
+
<tbody class="mcnFollowBlockOuter">
|
960
|
+
<tr>
|
961
|
+
<td align="center" valign="top" style="padding:9px" class="mcnFollowBlockInner">
|
962
|
+
|
963
|
+
<%= render 'footer_unsubscribe' %>
|
964
|
+
|
965
|
+
</td>
|
966
|
+
</tr>
|
967
|
+
</tbody>
|
968
|
+
</table>
|
969
|
+
</td>
|
970
|
+
</tr>
|
971
|
+
</table>
|
972
|
+
<!--[if (gte mso 9)|(IE)]>
|
973
|
+
</td>
|
974
|
+
</tr>
|
975
|
+
</table>
|
976
|
+
<![endif]-->
|
977
|
+
<!-- // END TEMPLATE -->
|
978
|
+
</td>
|
979
|
+
</tr>
|
980
|
+
</table>
|
981
|
+
</center>
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
</html>
|
data/lib/ish_manager.rb
CHANGED
data/lib/tasks/office_tasks.rake
CHANGED
@@ -5,6 +5,7 @@ namespace :office do
|
|
5
5
|
task schs: :environment do
|
6
6
|
while true do
|
7
7
|
|
8
|
+
## Office::ScheduledEmailAction
|
8
9
|
Sch.active.where({ :perform_at.lte => Time.now }).each do |sch|
|
9
10
|
|
10
11
|
sch.send_and_roll
|
@@ -24,11 +25,7 @@ namespace :office do
|
|
24
25
|
|
25
26
|
## send and roll
|
26
27
|
Office::Action.active.where({ :perform_at.lte => Time.now }).each do |oact|
|
27
|
-
|
28
|
-
oact.update({
|
29
|
-
perform_at: nil,
|
30
|
-
# state: OAct::STATE_INACTIVE, ## @TODO: remove, they remain active but non-perform.
|
31
|
-
})
|
28
|
+
oact.update({ perform_at: nil })
|
32
29
|
eval( oact.action_exe )
|
33
30
|
oact.ties.each do |tie|
|
34
31
|
next_oact = tie.next_office_action
|
@@ -54,21 +51,15 @@ namespace :office do
|
|
54
51
|
ctxs = ::Ish::EmailContext.scheduled.notsent
|
55
52
|
ctxs.map do |ctx|
|
56
53
|
|
57
|
-
|
58
|
-
throw "@TODO: continue iterating here. _vp_ 2023-09-18"
|
59
|
-
|
60
|
-
unsub = Ish::EmailUnsubscribe.where({ lead_id: ctx.lead_id, template_id: ctx.template_id }).first
|
54
|
+
unsub = Ish::EmailUnsubscribe.where({ lead_id: ctx.lead_id, template_id: ctx.template_id }).first
|
61
55
|
if unsub
|
62
|
-
template
|
63
|
-
puts! "Lead `#{ctx.lead.full_name}` [mailto:#{ctx.lead.email}] has already unsubscribed from template `#{template.slug}` ."
|
56
|
+
Office::AdminMessage.create({ message: "Lead `#{ctx.lead.full_name}` [mailto:#{ctx.lead.email}] has already unsubscribed from template `#{Ish::EmailTemplate.find( ctx.template_id ).slug}` ." })
|
64
57
|
email_action_ids = EAction.where({ email_template_id: ctx.template_id }).map(&:id)
|
65
|
-
|
58
|
+
schs = Sch.active.where({
|
66
59
|
lead_id: ctx.lead_id,
|
67
60
|
:email_action_id.in => email_action_ids,
|
68
61
|
})
|
69
|
-
|
70
|
-
state: Office::ScheduledEmailAction::STATE_UNSUBSCRIBED,
|
71
|
-
})
|
62
|
+
schs.update({ state: Office::ScheduledEmailAction::STATE_UNSUBSCRIBED })
|
72
63
|
end
|
73
64
|
|
74
65
|
out = IshManager::OfficeMailer.send_context_email( ctx[:id].to_s )
|
@@ -79,6 +70,7 @@ namespace :office do
|
|
79
70
|
duration = Rails.env.production? ? 120 : 15 # 2 minutes or 15 seconds
|
80
71
|
sleep duration
|
81
72
|
print '.'
|
73
|
+
|
82
74
|
end
|
83
75
|
end
|
84
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.470
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -666,6 +666,7 @@ files:
|
|
666
666
|
- app/views/ish_manager/email_templates/_m202309_holiday_thanksgiving.html.erb
|
667
667
|
- app/views/ish_manager/email_templates/_m202309_holiday_valentines.html.erb
|
668
668
|
- app/views/ish_manager/email_templates/_m202309_holiday_veterans_day.html.erb
|
669
|
+
- app/views/ish_manager/email_templates/_m202309_ror4.html.erb
|
669
670
|
- app/views/ish_manager/email_templates/_marketing_node_1.html.erb
|
670
671
|
- app/views/ish_manager/email_templates/_marketing_react_1.html
|
671
672
|
- app/views/ish_manager/email_templates/_marketing_react_2.html.erb
|
@@ -688,8 +689,6 @@ files:
|
|
688
689
|
- app/views/ish_manager/email_templates/_tracking_footer.html.erb
|
689
690
|
- app/views/ish_manager/email_templates/_wasyaco_roundborders.html.erb
|
690
691
|
- app/views/ish_manager/email_templates/_wasyaco_social.html.erb
|
691
|
-
- app/views/ish_manager/email_templates/done/_form.haml
|
692
|
-
- app/views/ish_manager/email_templates/done/_form2.haml
|
693
692
|
- app/views/ish_manager/email_templates/edit.haml
|
694
693
|
- app/views/ish_manager/email_templates/iframe_src.haml
|
695
694
|
- app/views/ish_manager/email_templates/index.haml
|
@@ -1,22 +0,0 @@
|
|
1
|
-
|
2
|
-
- url = %w| index new create |.include?( params[:action] ) ? email_templates_path : email_template_path(email_template.id)
|
3
|
-
|
4
|
-
.email-templates--form
|
5
|
-
= form_for email_template, url: url do |f|
|
6
|
-
.field
|
7
|
-
= f.label :type
|
8
|
-
= f.select :type, options_for_select(Ish::EmailTemplate.type_list, selected: email_template.type)
|
9
|
-
.field
|
10
|
-
= f.label :slug
|
11
|
-
= f.text_field :slug
|
12
|
-
.field
|
13
|
-
= f.label :from_email
|
14
|
-
= f.select :from_email, options_for_select(Ish::EmailContext.from_email_list, selected: email_template.from_email)
|
15
|
-
.field.field-subject
|
16
|
-
= f.label :subject
|
17
|
-
= f.text_field :subject
|
18
|
-
.field
|
19
|
-
= f.label :body
|
20
|
-
= f.text_area :body, class: 'tinymce'
|
21
|
-
.actions
|
22
|
-
= f.submit 'Submit'
|
@@ -1,26 +0,0 @@
|
|
1
|
-
|
2
|
-
- url = email_template.new_record? ? email_templates_path : email_template_path(email_template.id)
|
3
|
-
|
4
|
-
.email-templates--form
|
5
|
-
= form_for email_template, url: url do |f|
|
6
|
-
.row
|
7
|
-
.col-md-4
|
8
|
-
.field
|
9
|
-
= f.label :slug
|
10
|
-
= f.text_field :slug
|
11
|
-
.col-md-4
|
12
|
-
.field
|
13
|
-
= f.label :layout
|
14
|
-
= f.select :layout, options_for_select(Ish::EmailTemplate::LAYOUTS, selected: email_template.layout)
|
15
|
-
.col-md-4
|
16
|
-
.field
|
17
|
-
= f.label "From"
|
18
|
-
= f.select :from_email, options_for_select(Ish::EmailContext.from_email_list, selected: email_template.from_email)
|
19
|
-
.field.field-subject
|
20
|
-
= f.label :subject
|
21
|
-
= f.text_field :subject
|
22
|
-
.field
|
23
|
-
-# = f.label :body
|
24
|
-
= f.text_area :body, class: 'tinymce'
|
25
|
-
.actions
|
26
|
-
= f.submit 'Submit'
|