wco_email 0.1.1.53 → 0.1.1.54

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: 338e9ff0a3c482144a900d18632bcefe0b3ecaf8cd058449efac0d14c9abc2f9
4
- data.tar.gz: aa0a219a0ffdba806d30bc5638f9336f039383ddaee33df1c1cc128499249789
3
+ metadata.gz: 0f6ede374892e4ee2d1d74b9493abbc3b723786f53da7e5009db344cb075f481
4
+ data.tar.gz: b5850a2cab796944d3beb0f5b654fd3fd6388868bc655464c90fcc892996d831
5
5
  SHA512:
6
- metadata.gz: 39f2ac3e27958c7abd9c5822cb67363b2033646a6973d1afd6c454728410943f083069975fad40993d4114d7afa1ac6ccb2f991effa457ac404bbbe566220dfa
7
- data.tar.gz: e199465c53c67dca0d26fab1965f27691680ec890d21d1e9902609062221ab5d993fd4ac3996897cff80d7ebd009adbd8e303aed09b9abcd65e3a3a917a57edc
6
+ metadata.gz: ebc21b5cd1660e3132b27cb64ca994971cdd3b06beb5ea1ee5fef0b53e5afe1f40a3fe88c3699c57f4c29d0dba53e523a28eefc4dae707a72e352fa7b3c2a51c
7
+ data.tar.gz: 5147c26369314cf73e8085a2135fdd901e2b3975805d66500ecbadcc6c2ffb36c17f217b8dc43063720adbae17583dfa37294919e0b3f58e815f2459cc94e42a
@@ -14,39 +14,6 @@
14
14
  = render '/wco_email/conversations/actions'
15
15
 
16
16
  = render '/wco/paginate', resource: @conversations, param_name: :conv_page
17
- %table.bordered
18
- %tr
19
- %th.select-all.nosort
20
- .a
21
- = check_box_tag :select_all
22
- .n-selected -
23
- %th.leads leads
24
- %th.subject subject, preview
25
- %th.tags Tags
26
- %th.latest-at latest_at
27
- - @conversations.each_with_index do |conv, idx|
28
- %tr
29
- %td.select-all
30
- .gray= idx+1
31
- = check_box_tag 'conversation_ids[]', conv.id.to_s, nil, { class: 'i-sel' }
32
- %td.leads.mini
33
- -# - conv.from_emails.each do |from|
34
- -# = link_to from, wco.lead_path( from )
35
- -# %hr
36
- - conv.leads.each do |lead|
37
- = link_to lead.email, wco.lead_path( lead )
38
- %td.subject
39
- - if conv.unread?
40
- <b>#{link_to conv.subject, conversation_path(conv)}</b>
41
- - else
42
- = link_to conv.subject, conversation_path(conv)
43
- <b>(#{conv.messages.length})</b>
44
- %span.gray= conv.preview
45
- %td.tags.mini
46
- - conv.tags.each do |tag|
47
- .mb-1
48
- .Chip= tag.slug
49
- %td.latest-at
50
- = pp_date conv.latest_at
51
- = pp_time conv.latest_at
17
+ = render '/wco_email/conversations/table', convs: @conversations
18
+
52
19
  = render '/wco/paginate', resource: @conversations, param_name: :conv_page
@@ -32,7 +32,7 @@
32
32
  = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || email_filter.email_template_id ), {}, { class: 'select2' }
33
33
  .field
34
34
  = f.label :email_action_template
35
- = f.select :email_action_template, options_for_select( @email_action_templates_list, selected: email_filter.email_action_template ), {}, class: 'select2'
35
+ = f.select :email_action_template, options_for_select( @email_action_templates_list, selected: email_filter.email_action_template_id ), {}, class: 'select2'
36
36
  .field
37
37
  = f.label :tag
38
38
  = f.select :tag, options_for_select( @tags_list, selected: email_filter.tag_id ), {}, class: 'select2'
@@ -172,7 +172,6 @@ namespace :wco_email do
172
172
  unsub = WcoEmail::Unsubscribe.where({ lead_id: ctx.lead_id, template_id: ctx.email_template_id }).first
173
173
  if unsub
174
174
  puts! 'This user is unsubscribed; the context cannot be sent.' if DEBUG
175
- # Office::AdminMessage.create({ message: "Lead `#{ctx.lead.full_name}` [mailto:#{ctx.lead.email}] has already unsubscribed from template `#{Ish::EmailTemplate.find( ctx.email_template_id ).slug}` ." })
176
175
  email_action_template_ids = WcoEmail::EmailActionTemplate.where({ email_template_id: ctx.email_template_id }).map(&:id)
177
176
  schs = WcoEmail::EmailAction.active.where({
178
177
  lead_id: ctx.lead_id,
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.53
4
+ version: 0.1.1.54
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-02-10 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3