wco_email 0.1.1.49 → 0.1.1.51

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: d903910322abeff65d3382c3035b76f1d4b261fda57bc4b3e1b0257c7e02c961
4
+ data.tar.gz: 9d3dd99d6dd1c1a5aa9431979a3d2ffa383a5e7238422fedfdf3308140b9d7b4
5
5
  SHA512:
6
- metadata.gz: 968f20e090484637b7f1214f040d2afb0159a8f6959cb9d006c2239aca0fa4708d3619a59209379705f3c441f673c9bbf1370e4024614f188d5d50fa25b0ffe7
7
- data.tar.gz: 45912f6f3d88898d76fc19e8e7f06accd2bdd5b21efe9c90df111880dcd270c34e963327012aebbdf3e8c9680a12ca09dcb07d3b996c27cec440e1f0ccc4c89c
6
+ metadata.gz: ae1b169da0417816eec828e41e9cddc66a1219b653feab1876740f44a7cbff8a6ecee6fa4c221d7cc1def49f6f4b1ad82e832a2b98b0ae83e4d160236d742fb8
7
+ data.tar.gz: 690a27bffb447a80e5f844295dc64e6ac4a8d8ae783e7cbe76def125b7648e1b0ebf36afec4736c92fc8ecf94586e498d6e4686d2af57cb15e27533c37a369ef
@@ -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?
@@ -28,12 +28,15 @@
28
28
  .label-save-preview= f.submit 'Save & Preview'
29
29
  .tabs
30
30
  .tab-raw
31
- -## No class tinymce, cannot have tinymce mess with my own templating.
32
- = f.text_area :body
31
+ -## 2024-01-xx No class tinymce, cannot have tinymce mess with my own templating.
32
+ -## 2024-02-05 re-addedd tinymce
33
+ = f.text_area :body, class: 'tinymce'
34
+
33
35
  .tab-preview
34
36
  - if email_template.persisted?
35
37
  %iframe{ src: email_template_iframe_path(email_template), width: '100%', height: '100%' }
36
- .gray.mini= link_to email_template_iframe_path(email_template), email_template_iframe_path(email_template), target: :_blank
38
+ - if email_template.persisted?
39
+ .gray.mini= link_to email_template_iframe_path(email_template), email_template_iframe_path(email_template), target: :_blank
37
40
 
38
41
  .row
39
42
  .col-md-6
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.51
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-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3