wco_email 0.1.1.72 → 0.1.1.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/wco_email/api_controller.rb +1 -1
- data/app/controllers/wco_email/application_controller.rb +2 -0
- data/app/controllers/wco_email/email_actions_controller.rb +13 -2
- data/app/controllers/wco_email/email_templates_controller.rb +2 -0
- data/app/views/wco_email/_main_header.haml +2 -0
- data/app/views/wco_email/email_actions/index.haml +9 -9
- data/app/views/wco_email/email_templates/_form.haml +3 -3
- data/app/views/wco_email/email_templates/_row_col3.html.erb +184 -0
- data/app/views/wco_email/email_templates/_row_w_btn.html.erb +91 -0
- data/app/views/wco_email/email_templates/edit.haml +1 -2
- data/app/views/wco_email/email_templates/show.haml +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eadb96571c35fc50347f3428795c5d34627b9b8475411a3854b5d06d5558e27e
|
4
|
+
data.tar.gz: 05eece40857e365fdc985dc2a4e58cd8eb736ec7cb955d8967567446ac13c910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 187a5b65817946e8cf779ef9e286529913fc96fefe6b9a97d51d49cba77e4f8a645201321bd38732fd7cdf2dc574a1dc5e1bfc00bbbad1c99fca5a76f1ebc227
|
7
|
+
data.tar.gz: 8e12a1b02d952a9c0a86781c3e0ba91a5e9d8a15f43c9ed7b816c3b3c2522346777031835fc81cb1dccf891455a4644d1360e5284d0fd57a66371ba5fd754d4e
|
@@ -22,8 +22,19 @@ class WcoEmail::EmailActionsController < WcoEmail::ApplicationController
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def index
|
25
|
-
@
|
26
|
-
authorize! :index, @
|
25
|
+
@email_actions = WcoEmail::EmailAction.all
|
26
|
+
authorize! :index, @email_actions
|
27
|
+
if params[:q]
|
28
|
+
email_template_ids = WcoEmail::EmailTemplate.where( slug: /#{params[:q]}/i ).map &:id
|
29
|
+
email_action_template_ids = WcoEmail::EmailActionTemplate.any_of(
|
30
|
+
{ :email_template_id.in => email_template_ids },
|
31
|
+
{ slug: /#{params[:q]}/i },
|
32
|
+
).map &:id
|
33
|
+
|
34
|
+
@email_actions = @email_actions.where({
|
35
|
+
:email_action_template_id.in => email_action_template_ids,
|
36
|
+
})
|
37
|
+
end
|
27
38
|
end
|
28
39
|
|
29
40
|
def new
|
@@ -96,8 +96,10 @@ class WcoEmail::EmailTemplatesController < WcoEmail::ApplicationController
|
|
96
96
|
lead: Wco::Lead.find_by({ email: 'poxlovi@gmail.com' }),
|
97
97
|
})
|
98
98
|
|
99
|
+
eval( @tmpl.config_exe )
|
99
100
|
@renderer = WcoEmail::ApplicationMailer.renderer ctx: @ctx
|
100
101
|
|
102
|
+
|
101
103
|
render layout: false
|
102
104
|
end
|
103
105
|
|
@@ -17,9 +17,11 @@
|
|
17
17
|
%li= render '/wco/unsubscribes/header'
|
18
18
|
|
19
19
|
|
20
|
+
|
20
21
|
%ul
|
21
22
|
%li= render '/wco_email/email_action_templates/header'
|
22
23
|
%li= render '/wco_email/email_actions/header'
|
24
|
+
%li= render '/wco/obfuscated_redirects/header'
|
23
25
|
|
24
26
|
-# %li= render '/wco_email/lead_action_templates/header'
|
25
27
|
-# %li= render '/wco_email/lead_actions/header'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
.header
|
4
4
|
%h2
|
5
5
|
Email Actions
|
6
|
-
(#{
|
6
|
+
(#{@email_actions.length})
|
7
7
|
= link_to '[+]', new_email_action_path
|
8
8
|
|
9
9
|
%table.bordered.data-table
|
@@ -16,19 +16,19 @@
|
|
16
16
|
%td.tmpl Email Template
|
17
17
|
%td Perform at
|
18
18
|
%tbody
|
19
|
-
- @
|
19
|
+
- @email_actions.each do |ea|
|
20
20
|
%tr
|
21
|
-
%td= link_to '[~]', edit_email_action_path(
|
22
|
-
%td=
|
21
|
+
%td= link_to '[~]', edit_email_action_path(ea)
|
22
|
+
%td= ea.status == 'active' ? 'Y' : '-'
|
23
23
|
%td.email_action_template
|
24
|
-
= render '/wco_email/email_action_templates/show_cell', tmpl:
|
24
|
+
= render '/wco_email/email_action_templates/show_cell', tmpl: ea.tmpl
|
25
25
|
%td.to
|
26
|
-
= link_to
|
26
|
+
= link_to ea.lead.email, wco.lead_path(ea.lead)
|
27
27
|
%td.tmpl
|
28
|
-
= render '/wco_email/email_templates/show_cell', tmpl:
|
28
|
+
= render '/wco_email/email_templates/show_cell', tmpl: ea.tmpl.email_template
|
29
29
|
%td
|
30
|
-
= pp_date
|
31
|
-
= pp_time
|
30
|
+
= pp_date ea.perform_at.in_time_zone
|
31
|
+
= pp_time ea.perform_at.in_time_zone
|
32
32
|
|
33
33
|
|
34
34
|
|
@@ -14,12 +14,12 @@
|
|
14
14
|
.field.field-subject
|
15
15
|
= f.label :subject
|
16
16
|
= f.text_field :subject
|
17
|
+
%label mangle_subject
|
18
|
+
= f.check_box :mangle_subject
|
17
19
|
.field
|
18
20
|
= f.label :preview_str
|
19
21
|
= f.text_field :preview_str
|
20
|
-
|
21
|
-
%label mangle_subject
|
22
|
-
= f.check_box :mangle_subject
|
22
|
+
|
23
23
|
|
24
24
|
-# .field
|
25
25
|
-# = f.label :can_unsubscribe
|
@@ -0,0 +1,184 @@
|
|
1
|
+
|
2
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowBlock" style="min-width:100%;">
|
3
|
+
<tbody class="mcnFollowBlockOuter">
|
4
|
+
<tr>
|
5
|
+
<td align="center" valign="top" style="padding:9px" class="mcnFollowBlockInner">
|
6
|
+
|
7
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowContentContainer" style="min-width:100%;">
|
8
|
+
<tbody>
|
9
|
+
<tr>
|
10
|
+
<td align="center" style="padding-left:9px;padding-right:9px;">
|
11
|
+
|
12
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnFollowContent">
|
13
|
+
<tbody>
|
14
|
+
<tr>
|
15
|
+
<td align="center" valign="top" style="padding-top:9px; padding-right:9px; padding-left:9px;">
|
16
|
+
|
17
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0">
|
18
|
+
<tbody>
|
19
|
+
<tr>
|
20
|
+
<td align="center" valign="top">
|
21
|
+
<!--[if mso]>
|
22
|
+
<table align="center" border="0" cellspacing="0" cellpadding="0">
|
23
|
+
<tr>
|
24
|
+
<![endif]-->
|
25
|
+
|
26
|
+
<!--[if mso]>
|
27
|
+
<td align="center" valign="top">
|
28
|
+
<![endif]-->
|
29
|
+
|
30
|
+
|
31
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;">
|
32
|
+
<tbody>
|
33
|
+
<tr>
|
34
|
+
<td valign="top" style="padding-right:10px; padding-bottom:9px;"
|
35
|
+
class="mcnFollowContentItemContainer">
|
36
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%"
|
37
|
+
class="mcnFollowContentItem">
|
38
|
+
<tbody>
|
39
|
+
<tr>
|
40
|
+
<td align="left" valign="middle"
|
41
|
+
style="padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:9px;">
|
42
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" width="">
|
43
|
+
<tbody>
|
44
|
+
<tr>
|
45
|
+
|
46
|
+
<td align="center" valign="middle" width="24"
|
47
|
+
class="mcnFollowIconContent">
|
48
|
+
<a href="mailto:victor@wasya.co" target="_blank"><img
|
49
|
+
src="https://cdn-images.mailchimp.com/icons/social-block-v2/color-forwardtofriend-48.png"
|
50
|
+
alt="Email" style="display:block;" height="24" width="24"
|
51
|
+
class=""></a>
|
52
|
+
</td>
|
53
|
+
|
54
|
+
|
55
|
+
</tr>
|
56
|
+
</tbody>
|
57
|
+
</table>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
</tbody>
|
61
|
+
</table>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
</tbody>
|
65
|
+
</table>
|
66
|
+
|
67
|
+
<!--[if mso]>
|
68
|
+
</td>
|
69
|
+
<![endif]-->
|
70
|
+
|
71
|
+
<!--[if mso]>
|
72
|
+
<td align="center" valign="top">
|
73
|
+
<![endif]-->
|
74
|
+
|
75
|
+
|
76
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;">
|
77
|
+
<tbody>
|
78
|
+
<tr>
|
79
|
+
<td valign="top" style="padding-right:10px; padding-bottom:9px;"
|
80
|
+
class="mcnFollowContentItemContainer">
|
81
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%"
|
82
|
+
class="mcnFollowContentItem">
|
83
|
+
<tbody>
|
84
|
+
<tr>
|
85
|
+
<td align="left" valign="middle"
|
86
|
+
style="padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:9px;">
|
87
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" width="">
|
88
|
+
<tbody>
|
89
|
+
<tr>
|
90
|
+
|
91
|
+
<td align="center" valign="middle" width="24"
|
92
|
+
class="mcnFollowIconContent">
|
93
|
+
<a href="https://github.com/wasya-co" target="_blank"><img
|
94
|
+
src="https://cdn-images.mailchimp.com/icons/social-block-v2/color-github-48.png"
|
95
|
+
alt="Github" style="display:block;" height="24" width="24"
|
96
|
+
class=""></a>
|
97
|
+
</td>
|
98
|
+
|
99
|
+
|
100
|
+
</tr>
|
101
|
+
</tbody>
|
102
|
+
</table>
|
103
|
+
</td>
|
104
|
+
</tr>
|
105
|
+
</tbody>
|
106
|
+
</table>
|
107
|
+
</td>
|
108
|
+
</tr>
|
109
|
+
</tbody>
|
110
|
+
</table>
|
111
|
+
|
112
|
+
<!--[if mso]>
|
113
|
+
</td>
|
114
|
+
<![endif]-->
|
115
|
+
|
116
|
+
<!--[if mso]>
|
117
|
+
<td align="center" valign="top">
|
118
|
+
<![endif]-->
|
119
|
+
|
120
|
+
|
121
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;">
|
122
|
+
<tbody>
|
123
|
+
<tr>
|
124
|
+
<td valign="top" style="padding-right:0; padding-bottom:9px;"
|
125
|
+
class="mcnFollowContentItemContainer">
|
126
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%"
|
127
|
+
class="mcnFollowContentItem">
|
128
|
+
<tbody>
|
129
|
+
<tr>
|
130
|
+
<td align="left" valign="middle"
|
131
|
+
style="padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:9px;">
|
132
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" width="">
|
133
|
+
<tbody>
|
134
|
+
<tr>
|
135
|
+
|
136
|
+
<td align="center" valign="middle" width="24"
|
137
|
+
class="mcnFollowIconContent">
|
138
|
+
<a href="https://www.instagram.com/wasya_co/"
|
139
|
+
target="_blank"><img
|
140
|
+
src="https://cdn-images.mailchimp.com/icons/social-block-v2/color-instagram-48.png"
|
141
|
+
alt="Instagram" style="display:block;" height="24"
|
142
|
+
width="24" class=""></a>
|
143
|
+
</td>
|
144
|
+
|
145
|
+
|
146
|
+
</tr>
|
147
|
+
</tbody>
|
148
|
+
</table>
|
149
|
+
</td>
|
150
|
+
</tr>
|
151
|
+
</tbody>
|
152
|
+
</table>
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
</tbody>
|
156
|
+
</table>
|
157
|
+
|
158
|
+
<!--[if mso]>
|
159
|
+
</td>
|
160
|
+
<![endif]-->
|
161
|
+
|
162
|
+
<!--[if mso]>
|
163
|
+
</tr>
|
164
|
+
</table>
|
165
|
+
<![endif]-->
|
166
|
+
</td>
|
167
|
+
</tr>
|
168
|
+
</tbody>
|
169
|
+
</table>
|
170
|
+
|
171
|
+
</td>
|
172
|
+
</tr>
|
173
|
+
</tbody>
|
174
|
+
</table>
|
175
|
+
|
176
|
+
</td>
|
177
|
+
</tr>
|
178
|
+
</tbody>
|
179
|
+
</table>
|
180
|
+
|
181
|
+
</td>
|
182
|
+
</tr>
|
183
|
+
</tbody>
|
184
|
+
</table>
|
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
<% # @ctx.config.to_link %>
|
3
|
+
<% # @ctx.config.to_label %>
|
4
|
+
|
5
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowBlock" style="min-width:100%;">
|
6
|
+
<tbody class="mcnFollowBlockOuter">
|
7
|
+
<tr>
|
8
|
+
<td align="center" valign="top" style="padding:9px" class="mcnFollowBlockInner">
|
9
|
+
|
10
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowContentContainer" style="min-width:100%;">
|
11
|
+
<tbody>
|
12
|
+
<tr>
|
13
|
+
<td align="center" style="padding-left:9px;padding-right:9px;">
|
14
|
+
|
15
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnFollowContent">
|
16
|
+
<tbody>
|
17
|
+
<tr>
|
18
|
+
<td align="center" valign="top" style="padding-top:9px; padding-right:9px; padding-left:9px;">
|
19
|
+
|
20
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0">
|
21
|
+
<tbody>
|
22
|
+
<tr>
|
23
|
+
<td align="center" valign="top">
|
24
|
+
<!--[if mso]>
|
25
|
+
<table align="center" border="0" cellspacing="0" cellpadding="0">
|
26
|
+
<tr>
|
27
|
+
<![endif]-->
|
28
|
+
|
29
|
+
<!--[if mso]>
|
30
|
+
<td align="center" valign="top">
|
31
|
+
<![endif]-->
|
32
|
+
|
33
|
+
|
34
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" style="display:inline;">
|
35
|
+
<tbody>
|
36
|
+
<tr>
|
37
|
+
<td valign="top" style="padding-right:10px; padding-bottom:9px;" class="mcnFollowContentItemContainer">
|
38
|
+
|
39
|
+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowContentItem" style=" border-radius: 0.5em; background: #669; ">
|
40
|
+
<tbody>
|
41
|
+
<tr>
|
42
|
+
<td align="left" valign="middle" style="padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:9px;">
|
43
|
+
|
44
|
+
<table align="left" border="0" cellpadding="0" cellspacing="0" width="" >
|
45
|
+
<tbody>
|
46
|
+
<tr>
|
47
|
+
<td align="center" valign="middle" width="24" class="mcnFollowIconContent">
|
48
|
+
<a href="<%= @ctx.config.to_link || 'https://wasya.co' %>" target="_blank" style="color: white; text-decoration: none;"
|
49
|
+
><%= @ctx.config.to_label || 'Continue' %></a>
|
50
|
+
</td>
|
51
|
+
</tr>
|
52
|
+
</tbody>
|
53
|
+
</table>
|
54
|
+
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
</tbody>
|
58
|
+
</table>
|
59
|
+
|
60
|
+
</td>
|
61
|
+
</tr>
|
62
|
+
</tbody>
|
63
|
+
</table>
|
64
|
+
|
65
|
+
<!--[if mso]>
|
66
|
+
</td>
|
67
|
+
<![endif]-->
|
68
|
+
|
69
|
+
<!--[if mso]>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
<![endif]-->
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
</tbody>
|
76
|
+
</table>
|
77
|
+
|
78
|
+
</td>
|
79
|
+
</tr>
|
80
|
+
</tbody>
|
81
|
+
</table>
|
82
|
+
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
</tbody>
|
86
|
+
</table>
|
87
|
+
|
88
|
+
</td>
|
89
|
+
</tr>
|
90
|
+
</tbody>
|
91
|
+
</table>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.email-templates-show
|
2
|
+
.email-templates-show.maxwidth
|
3
3
|
.header
|
4
4
|
%h2.title
|
5
5
|
= @tmpl.slug
|
@@ -8,4 +8,4 @@
|
|
8
8
|
-# = link_to '[preview ^]', '#'
|
9
9
|
-# = link_to '[use]', '#'
|
10
10
|
|
11
|
-
%iframe{ src: email_template_iframe_path(@tmpl.slug), width: '
|
11
|
+
%iframe{ src: email_template_iframe_path(@tmpl.slug), width: '750px', height: '450px' }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -419,6 +419,8 @@ files:
|
|
419
419
|
- app/views/wco_email/email_templates/_index_expanded.haml
|
420
420
|
- app/views/wco_email/email_templates/_meta.haml
|
421
421
|
- app/views/wco_email/email_templates/_piousbox_social.html.erb
|
422
|
+
- app/views/wco_email/email_templates/_row_col3.html.erb
|
423
|
+
- app/views/wco_email/email_templates/_row_w_btn.html.erb
|
422
424
|
- app/views/wco_email/email_templates/_show_cell.haml
|
423
425
|
- app/views/wco_email/email_templates/_tracking_footer.html.erb
|
424
426
|
- app/views/wco_email/email_templates/_wasyaco_social.html.erb
|