wco_email 0.1.1.49 → 0.1.1.50

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfdc93a04b6ada90896eb286b87784236064a3bdc94b43fc935c8e4ed0cc4803
4
- data.tar.gz: 8e0214d33ebd8ddab96867418993df99af76bf946fc450d938cb62bef3d9807f
3
+ metadata.gz: a8b3bc2eba0acec70837677886c89711208050bb409cb1a10124dcaaf9582d9a
4
+ data.tar.gz: ca74500d7835c3eb35548f83f3b503ba70075c0ab9050a89925188589c4d6c4c
5
5
  SHA512:
6
- metadata.gz: 968f20e090484637b7f1214f040d2afb0159a8f6959cb9d006c2239aca0fa4708d3619a59209379705f3c441f673c9bbf1370e4024614f188d5d50fa25b0ffe7
7
- data.tar.gz: 45912f6f3d88898d76fc19e8e7f06accd2bdd5b21efe9c90df111880dcd270c34e963327012aebbdf3e8c9680a12ca09dcb07d3b996c27cec440e1f0ccc4c89c
6
+ metadata.gz: 04061ac88baa77afa3d4f5456830e25608de8df6e4fb4073edd34a6c9f2dcb8d4f6eb323b9648c287e21879b1d0823607d74a9833933035238471996b65467d9
7
+ data.tar.gz: 3681168ce29b4263bb44ccf824877fa017eef329752e7405b302428fbe2e6f6978a918d03a67e1367f60b9c4b7b15ea23d6d0a896b84fc5ac80860d426ea9a40
@@ -48,6 +48,10 @@ class WcoEmail::ConversationsController < WcoEmail::ApplicationController
48
48
  @conversations = @conversations.where({ from_emails: /.*#{params[:from_email]}.*/i })
49
49
  end
50
50
 
51
+ if params[:lead_id].present?
52
+ @conversations = @conversations.where( lead_ids: params[:lead_id] )
53
+ end
54
+
51
55
  @conversations = @conversations.order_by( latest_at: :desc
52
56
  ).includes( :leads, :messages
53
57
  ).page( params[:conv_page]
@@ -20,7 +20,7 @@
20
20
  = javascript_include_tag "//cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js"
21
21
 
22
22
  = stylesheet_link_tag "//cdn.jsdelivr.net/npm/select2@4.0.0/dist/css/select2.min.css"
23
- = javascript_include_tag "//cdn.jsdelivr.net/npm/select2@4.0.0/dist/js/select2.min.js"
23
+ = javascript_include_tag "//cdn.jsdelivr.net/npm/select2@4.0.0/dist/js/select2.min.js", defer: 'defer'
24
24
 
25
25
  = stylesheet_link_tag "//cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css"
26
26
  = javascript_include_tag "//cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"
@@ -9,4 +9,6 @@
9
9
  %label by subject
10
10
  = text_field_tag :subject, params[:subject]
11
11
  = submit_tag '>'
12
+ - if params[:lead_id]
13
+ <b>lead_id:</b>#{params[:lead_id]}
12
14
 
@@ -8,6 +8,10 @@
8
8
  <b>(#{@conversation.messages.length})</b>
9
9
  = link_to '[~]', edit_conversation_path(@conversation)
10
10
  %span.gray.mini= @conversation.id
11
+ .leads
12
+ .d-inline <b>Leads:</b>
13
+ - @conversation.leads.each do |lead|
14
+ .Chip= link_to lead.email, wco.lead_path( lead )
11
15
 
12
16
 
13
17
  - if @other_convs.present?
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.49
4
+ version: 0.1.1.50
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-01 00:00:00.000000000 Z
11
+ date: 2024-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3