wco_email 0.1.1.124 → 0.1.1.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fafc49472bdc5adc51c4fadf3f9d8fd3eccce165fbad819eb3e4e1ad3829b82a
|
|
4
|
+
data.tar.gz: 23b070dd85dad3f9186e3f91ff0cc3b57c0c533c6e046c913af83d37dbdd850e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dea868ba1fa68e39183503a465d539b0c1766e580560a518ea34a20f1a6a43dd64f3ced9a3f70b4930a36e288f75a5c2936878be4da3556924600378495509e
|
|
7
|
+
data.tar.gz: 6232f9cb257f493bb615df976482a0c53815c4be7e9c8858acd18004beb2d72d9a721b945455d877781d3eeeccb2ae1787b89d25bfeb1481d6117b1f9c683c7d
|
|
@@ -69,7 +69,7 @@ class WcoEmail::EmailFiltersController < WcoEmail::ApplicationController
|
|
|
69
69
|
def index
|
|
70
70
|
authorize! :index, WcoEmail::EmailFilter.new
|
|
71
71
|
@email_filter = WcoEmail::EmailFilter.new
|
|
72
|
-
@email_filters = WcoEmail::EmailFilter.all.includes( :
|
|
72
|
+
@email_filters = WcoEmail::EmailFilter.all.includes( :conversations )
|
|
73
73
|
|
|
74
74
|
if params[:q]
|
|
75
75
|
filter_ids = WcoEmail::EmailFilterCondition.where( value: /#{params[:q]}/i ).distinct(:email_filter_id)
|
|
@@ -66,7 +66,11 @@ class WcoEmail::MessageStubsController < WcoEmail::ApplicationController
|
|
|
66
66
|
authorize! :show, @stub
|
|
67
67
|
|
|
68
68
|
@client ||= Aws::S3::Client.new(::SES_S3_CREDENTIALS)
|
|
69
|
-
|
|
69
|
+
if 'json' == @stub.format
|
|
70
|
+
@json = JSON.parse( @client.get_object( bucket: @stub.bucket, key: @stub.object_key ).body.read )
|
|
71
|
+
else
|
|
72
|
+
@json = @client.get_object( bucket: @stub.bucket, key: @stub.object_key ).body.read
|
|
73
|
+
end
|
|
70
74
|
end
|
|
71
75
|
|
|
72
76
|
def update
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
.email-filters--header
|
|
3
3
|
%h5.title.text-center
|
|
4
|
-
= link_to '[~]', wco_email.edit_email_filter_path( @email_filter )
|
|
5
|
-
|
|
4
|
+
-# = link_to '[~]', wco_email.edit_email_filter_path( @email_filter )
|
|
6
5
|
= link_to '[~2]', wco_email.edit2_email_filter_path( @email_filter )
|
|
7
6
|
|
|
8
7
|
= link_to 'Email Filter', wco_email.email_filter_path( @email_filter )
|
|
@@ -22,12 +22,7 @@
|
|
|
22
22
|
%th status
|
|
23
23
|
%th n convs
|
|
24
24
|
%th slug
|
|
25
|
-
%th
|
|
26
|
-
%th Match
|
|
27
|
-
%th Skip
|
|
28
|
-
%th Kind
|
|
29
|
-
-# %th Conditions
|
|
30
|
-
-# %th Skip Conditions
|
|
25
|
+
%th to_s_ful
|
|
31
26
|
|
|
32
27
|
- @email_filters.each_with_index do |ef, idx|
|
|
33
28
|
|
|
@@ -37,7 +32,7 @@
|
|
|
37
32
|
= check_box_tag 'email_filter_ids[]', ef.id, nil, { class: 'i-sel' }
|
|
38
33
|
%td
|
|
39
34
|
.flex-row
|
|
40
|
-
= link_to '[~]', edit_email_filter_path(ef)
|
|
35
|
+
-# = link_to '[~]', edit_email_filter_path(ef)
|
|
41
36
|
= link_to '[~2]', edit2_email_filter_path(ef)
|
|
42
37
|
= link_to '[view]', email_filter_path(ef)
|
|
43
38
|
.inline-block= button_to '[x]', email_filter_path(ef), method: :delete, data: { confirm: 'Are you sure?' }
|
|
@@ -50,38 +45,6 @@
|
|
|
50
45
|
= ef.slug
|
|
51
46
|
%td.to_s_full
|
|
52
47
|
%pre= ef.to_s_full
|
|
53
|
-
%td.match
|
|
54
|
-
- if ef.from_regex.present?
|
|
55
|
-
.a <b>from_regex:</b> `#{ef.from_regex}`
|
|
56
|
-
- if ef.from_exact.present?
|
|
57
|
-
.a <b>from_exact:</b> `#{ef.from_exact}`
|
|
58
|
-
- if ef.subject_regex.present?
|
|
59
|
-
.a <b>subject_regex:</b> `#{ef.subject_regex}`
|
|
60
|
-
- if ef.subject_exact.present?
|
|
61
|
-
.a <b>subject_exact:</b> `#{ef.subject_exact}`
|
|
62
|
-
- if ef.body_exact.present?
|
|
63
|
-
.a <b>body_exact:</b> `#{ef.body_exact}`
|
|
64
|
-
|
|
65
|
-
%td.skip
|
|
66
|
-
- if ef.skip_to_exact.present?
|
|
67
|
-
.a <b>skip_to_exact:</b> `#{ef.skip_to_exact}`
|
|
68
|
-
- if ef.skip_from_regex.present?
|
|
69
|
-
.a <b>skip_from_regex:</b> `#{ef.skip_from_regex}`
|
|
70
|
-
|
|
71
|
-
%td.action
|
|
72
|
-
- if ef.kind == EF::KIND_AUTORESPOND_TMPL
|
|
73
|
-
.a <b>#{EF::KIND_AUTORESPOND_TMPL}:</b> #{ef.email_template&.slug}
|
|
74
|
-
- if ef.kind == EF::KIND_AUTORESPOND_EACT
|
|
75
|
-
.a <b>#{EF::KIND_AUTORESPOND_EACT}:</b> #{ef.email_action_template&.slug}
|
|
76
|
-
- if ef.kind == EF::KIND_ADD_TAG
|
|
77
|
-
.a <b>#{EF::KIND_ADD_TAG}:</b> #{ef.tag&.slug}
|
|
78
|
-
- if ef.kind == EF::KIND_REMOVE_TAG
|
|
79
|
-
.a <b>#{EF::KIND_REMOVE_TAG}:</b> #{ef.tag&.slug}
|
|
80
|
-
|
|
81
|
-
-# %td.conditions
|
|
82
|
-
-# = ef.conditions.length
|
|
83
|
-
-# %td.skip-conditions
|
|
84
|
-
-# = ef.skip_conditions.length
|
|
85
48
|
|
|
86
49
|
= paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
|
|
87
50
|
|