ish_manager 0.1.8.440 → 0.1.8.442
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ish_manager/application.scss +11 -0
- data/app/assets/stylesheets/ish_manager/email_conversations.scss +1 -0
- data/app/assets/stylesheets/ish_manager/scheduled_email_actions.scss +1 -14
- data/app/controllers/ish_manager/email_contexts_controller.rb +7 -7
- data/app/views/ish_manager/email_contexts/index.haml +9 -7
- data/app/views/ish_manager/email_conversations/show.haml +15 -10
- data/app/views/ish_manager/leads/show.haml +2 -2
- data/app/views/ish_manager/scheduled_email_actions/_form.haml +1 -1
- 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: 6add2c78be68b970e5ed63144344f26db72376ee470ab47af933825711b75ad7
|
4
|
+
data.tar.gz: 65225e3310c2bd7c7fdc40fe7545859218e0e0fc1e8a8fe9c2073019bf90bed5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9eab9cb8865b3387892c423e64b34e2fe03876a52adeddc8d8fa7f9208c64fc83002b06bdeafbb3f6d0fa5c174d351afbdc8e5ead38c3f2018579e7a96b7cc6
|
7
|
+
data.tar.gz: e42d56003277aef8cfb00324f17b2c0da175f9838d31a5e2a0a525ef872cdaf5bfe13cd91495f35c1e9f33eb897009f936ea785ede3fd6ec3c0cf84b75ecf3b0
|
@@ -254,6 +254,17 @@ table.dataTable {
|
|
254
254
|
display: none;
|
255
255
|
position: absolute;
|
256
256
|
min-width: 250px;
|
257
|
+
z-index: 1;
|
258
|
+
|
259
|
+
form {
|
260
|
+
min-width: 300px;
|
261
|
+
border: 1px solid blue;
|
262
|
+
border-radius: 0.5em;
|
263
|
+
padding: 0.5em;
|
264
|
+
|
265
|
+
background: #ccc;
|
266
|
+
display: inline-block;
|
267
|
+
}
|
257
268
|
}
|
258
269
|
|
259
270
|
/* E */
|
@@ -1,8 +1,4 @@
|
|
1
1
|
|
2
|
-
.scheduled-email-actions--form {
|
3
|
-
min-width: 300px;
|
4
|
-
}
|
5
|
-
|
6
2
|
.scheduled-emails-new {
|
7
3
|
border: 1px solid red;
|
8
4
|
border-radius: .5em;
|
@@ -24,15 +20,7 @@
|
|
24
20
|
}
|
25
21
|
|
26
22
|
.scheduled-email-actions--form {
|
27
|
-
|
28
|
-
form {
|
29
|
-
border: 1px solid blue;
|
30
|
-
border-radius: 0.5em;
|
31
|
-
padding: 0.5em;
|
32
|
-
|
33
|
-
background: #ccc;
|
34
|
-
display: inline-block;
|
35
|
-
}
|
23
|
+
max-width: 500px;
|
36
24
|
|
37
25
|
.actions {
|
38
26
|
display: flex;
|
@@ -43,5 +31,4 @@
|
|
43
31
|
.flex-row {
|
44
32
|
justify-content: space-between;
|
45
33
|
}
|
46
|
-
|
47
34
|
}
|
@@ -69,15 +69,15 @@ class ::IshManager::EmailContextsController < ::IshManager::ApplicationControlle
|
|
69
69
|
authorize! :index, ::Ish::EmailContext
|
70
70
|
@ctxs = ::Ish::EmailContext.all.page( params[:ctxs_page] ).per( current_profile.per_page )
|
71
71
|
|
72
|
-
if my_truthy? params[:sent]
|
73
|
-
@ctxs = @ctxs.where( :sent_at.ne => nil )
|
74
|
-
else
|
75
|
-
@ctxs = @ctxs.where( sent_at: nil )
|
76
|
-
end
|
77
|
-
|
78
72
|
if params[:lead_id]
|
79
73
|
@lead = Lead.find params[:lead_id]
|
80
|
-
@ctxs = @ctxs.where(
|
74
|
+
@ctxs = @ctxs.where( lead_id: @lead.id )
|
75
|
+
else
|
76
|
+
if my_truthy? params[:sent]
|
77
|
+
@ctxs = @ctxs.where( :sent_at.ne => nil )
|
78
|
+
else
|
79
|
+
@ctxs = @ctxs.where( sent_at: nil )
|
80
|
+
end
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
@@ -3,15 +3,17 @@
|
|
3
3
|
|
4
4
|
.header.collapse-expand-trash#emailContextsIndex
|
5
5
|
%h2.title
|
6
|
-
|
7
|
-
= link_to '[notsent]', email_contexts_path({ sent: false })
|
8
|
-
<u>sent</u>
|
9
|
-
- else
|
10
|
-
<u>notsent</u>
|
11
|
-
= link_to '[sent]', email_contexts_path({ sent: true })
|
6
|
+
|
12
7
|
Email Contexts (#{@ctxs.length})
|
13
8
|
- if @lead
|
14
|
-
For lead
|
9
|
+
For lead #{@lead.email}
|
10
|
+
- else
|
11
|
+
- if my_truthy? params[:sent]
|
12
|
+
= link_to '[notsent]', email_contexts_path({ sent: false })
|
13
|
+
<u>sent</u>
|
14
|
+
- else
|
15
|
+
<u>notsent</u>
|
16
|
+
= link_to '[sent]', email_contexts_path({ sent: true })
|
15
17
|
= link_to '[+]', new_email_context_path
|
16
18
|
|
17
19
|
|
@@ -16,8 +16,20 @@
|
|
16
16
|
|
17
17
|
.leads.max-width
|
18
18
|
Leads (#{@email_conversation.leads.length}):
|
19
|
-
|
20
|
-
|
19
|
+
- @email_conversation.leads.each do |lead|
|
20
|
+
.item
|
21
|
+
= link_to "#{lead.id} #{lead.email}", lead_path(lead)
|
22
|
+
\(ctxs:
|
23
|
+
= link_to email_contexts_for_lead_path( lead ) do
|
24
|
+
= lead.email_contexts.count
|
25
|
+
%i.fa.fa-envelope
|
26
|
+
.relative.inline-block
|
27
|
+
%i.fa.fa-plus.expand-next
|
28
|
+
.expand-hide= render 'ish_manager/email_contexts/form', ctx: Ctx.new({ lead_id: lead.id, email_template: Tmpl.blank })
|
29
|
+
\)
|
30
|
+
.relative.inline-block
|
31
|
+
%i.fa.fa-clock-o.expand-next{ style: "color: red;" }
|
32
|
+
.expand-hide= render 'ish_manager/scheduled_email_actions/form', scheduled_email_action: Sch.new({ lead_id: lead.id })
|
21
33
|
|
22
34
|
.messages.max-width
|
23
35
|
- @email_messages.each do |msg|
|
@@ -31,14 +43,7 @@
|
|
31
43
|
= msg.id
|
32
44
|
<b>To:</b> #{msg.to}
|
33
45
|
<b>From:</b> #{lead.email}
|
34
|
-
|
35
|
-
\(
|
36
|
-
= lead.email_contexts.count
|
37
|
-
%i.fa.fa-envelope
|
38
|
-
\)
|
39
|
-
.relative.inline-block
|
40
|
-
%i.fa.fa-clock-o.expand-next{ style: "color: red;" }
|
41
|
-
.expand-hide= render 'ish_manager/scheduled_email_actions/form', scheduled_email_action: Sch.new({ lead_id: lead.id })
|
46
|
+
|
42
47
|
|
43
48
|
.datetime
|
44
49
|
.date= msg.date&.strftime('%Y-%m-%d')
|
@@ -22,8 +22,8 @@
|
|
22
22
|
%ul
|
23
23
|
- @ctxs.each do |ctx|
|
24
24
|
%li
|
25
|
-
=
|
26
|
-
=
|
25
|
+
= pp_date( ctx.sent_at ) || 'not sent'
|
26
|
+
= link_to ctx.subject.presence||"No Subj?!", email_context_path(ctx)
|
27
27
|
.col-md-6.schs
|
28
28
|
%h5
|
29
29
|
Scheduled actions (#{@schs.length})
|
@@ -18,7 +18,7 @@
|
|
18
18
|
= f.select :email_action, options_for_select( @email_actions_list, selected: sch_a[:email_action_id] ), {}, class: 'select2'
|
19
19
|
.flex-row
|
20
20
|
= f.label :perform_at
|
21
|
-
= f.text_field :perform_at
|
21
|
+
= f.text_field :perform_at, value: sch_a.new_record? ? Time.now : sch_a.perform_at
|
22
22
|
|
23
23
|
.actions
|
24
24
|
= submit_tag 'Schedule'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.442
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|