wco_email 0.1.1.51 → 0.1.1.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascript/wco_email/application.js +5 -0
- data/app/assets/stylesheets/wco_email/application.scss +2 -2
- data/app/views/wco_email/contexts/_form_reply.haml +1 -1
- data/app/views/wco_email/conversations/show.haml +5 -2
- data/app/views/wco_email/email_templates/_form.haml +2 -1
- data/app/views/wco_email/messages/_meta.haml +35 -31
- data/app/views/wco_email/messages/show_iframe.haml +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 338e9ff0a3c482144a900d18632bcefe0b3ecaf8cd058449efac0d14c9abc2f9
|
4
|
+
data.tar.gz: aa0a219a0ffdba806d30bc5638f9336f039383ddaee33df1c1cc128499249789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39f2ac3e27958c7abd9c5822cb67363b2033646a6973d1afd6c454728410943f083069975fad40993d4114d7afa1ac6ccb2f991effa457ac404bbbe566220dfa
|
7
|
+
data.tar.gz: e199465c53c67dca0d26fab1965f27691680ec890d21d1e9902609062221ab5d993fd4ac3996897cff80d7ebd009adbd8e303aed09b9abcd65e3a3a917a57edc
|
@@ -25,5 +25,5 @@
|
|
25
25
|
= check_box_tag :respond_inline, message.id, checked: true
|
26
26
|
.flex-row
|
27
27
|
= f.label :send_at
|
28
|
-
= f.text_field :send_at,
|
28
|
+
= f.text_field :send_at, placeholder: 'YYYY-MM-DD', value: Time.now, size: 30, class: 'input-date'
|
29
29
|
= f.submit 'Send/Schedule'
|
@@ -27,6 +27,9 @@
|
|
27
27
|
- @conversation.messages.each do |msg|
|
28
28
|
%li
|
29
29
|
= render '/wco_email/messages/meta', message: msg
|
30
|
-
|
30
|
+
= link_to '[expand]', message_iframe_path(msg, expand_history: true), target: "iframe_#{msg.id}"
|
31
|
+
= link_to '[collapse]', message_iframe_path(msg), target: "iframe_#{msg.id}"
|
32
|
+
%iframe.message-iframe{ src: message_iframe_path(msg), id: "iframe_#{msg.id}", name: "iframe_#{msg.id}", onload: "resizeIframe(this)" }
|
31
33
|
|
32
|
-
|
34
|
+
- msg = @conversation.messages.last
|
35
|
+
= render '/wco_email/contexts/form_reply', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject, email_template_id: ET.find_by( slug: 'blank').id })
|
@@ -30,7 +30,8 @@
|
|
30
30
|
.tab-raw
|
31
31
|
-## 2024-01-xx No class tinymce, cannot have tinymce mess with my own templating.
|
32
32
|
-## 2024-02-05 re-addedd tinymce
|
33
|
-
|
33
|
+
-## ah! I meant, erb templates are ruined by summernote.
|
34
|
+
= f.text_area :body
|
34
35
|
|
35
36
|
.tab-preview
|
36
37
|
- if email_template.persisted?
|
@@ -1,32 +1,36 @@
|
|
1
1
|
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
%
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<b>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
2
|
+
.d-inline-block
|
3
|
+
.collapse-expand{ id: "meta_#{message.id}" }
|
4
|
+
Meta
|
5
|
+
.messages--meta.flex-row{ style: 'display: none' }
|
6
|
+
|
7
|
+
%ul
|
8
|
+
%li <b>froms:</b> #{message.froms}
|
9
|
+
%li <b>tos:</b> #{message.tos}
|
10
|
+
%li <b>ccs:</b> #{message.ccs}
|
11
|
+
%li <b>bccs:</b> #{message.bccs}
|
12
|
+
%li <b>logs:</b> #{message.logs}
|
13
|
+
%ul
|
14
|
+
%li
|
15
|
+
<b>date:</b> #{message.date}
|
16
|
+
%li
|
17
|
+
<b>id:</b> #{link_to message.id, message_path(message)}
|
18
|
+
%li
|
19
|
+
<b>message_id:</b> #{message.message_id}
|
20
|
+
%li
|
21
|
+
<b>object_key:</b> #{message.object_key}
|
22
|
+
%li <b>in_reply_to_id:</b> #{message.in_reply_to_id}
|
23
|
+
%li
|
24
|
+
<b>n_images:</b> #{message.photos.length}
|
25
|
+
%br
|
26
|
+
- message.photos.each do |photo|
|
27
|
+
= link_to photo.photo.url(:original), target: :_blank do
|
28
|
+
%span.bordered.p-0= image_tag( photo.photo.url(:mini) )
|
29
|
+
= photo.photo.original_filename
|
30
|
+
%li
|
31
|
+
<b>n_assets:</b> #{message.assets.length}
|
32
|
+
- if !message.assets.blank?
|
33
|
+
%ol
|
34
|
+
- message.assets.each do |asset|
|
35
|
+
%li
|
36
|
+
= link_to asset.filename, asset.object.url(:original), target: :_blank
|
@@ -1,5 +1,14 @@
|
|
1
1
|
|
2
|
+
- if params[:expand_history] == 'true'
|
3
|
+
-# ;
|
4
|
+
- else
|
5
|
+
:css
|
6
|
+
blockquote {
|
7
|
+
display: none;
|
8
|
+
}
|
9
|
+
|
2
10
|
|
3
11
|
= raw @message.part_html_sanitized
|
4
|
-
|
5
|
-
%
|
12
|
+
|
13
|
+
-# %hr{ style: 'border-top: 1px solid red;' }
|
14
|
+
-# %pre= @message.part_txt
|
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.53
|
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-
|
11
|
+
date: 2024-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|