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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c76d84dfb6865e2469dcf6c92fa6ba382aaf6121664bc6c2c5030d517e436def
4
- data.tar.gz: bb81afa3195283fe7e37347dd126490daa13a3e9ee79e4e7aebcfcb4cc330933
3
+ metadata.gz: 6add2c78be68b970e5ed63144344f26db72376ee470ab47af933825711b75ad7
4
+ data.tar.gz: 65225e3310c2bd7c7fdc40fe7545859218e0e0fc1e8a8fe9c2073019bf90bed5
5
5
  SHA512:
6
- metadata.gz: 1b7c4a6015f671f1d7814d4cf0e706e6a0f41a3d88b42267193256c145e1a8c164427433389be0c58384abaed4de6e25c4bc4f77da0fb95fd3e430208f8f2c8a
7
- data.tar.gz: dd66635adab427556e6590d3ebfc10eeae6441be0deaeece93eb39804d48fdbc5896da15493f6cab9621faeadfb6f3d203d08c64ffca49d65c0473fa78a07eba
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 */
@@ -67,6 +67,7 @@
67
67
 
68
68
  .leads {
69
69
  .item {
70
+ display: inline;
70
71
  border: 1px solid green;
71
72
  // background: cyan;
72
73
  }
@@ -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( to_email: @lead.email )
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
- - if my_truthy? params[:sent]
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 `#{@lead.name}`
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
- = @email_conversation.leads.map(&:id)
20
- -# .leadsC= render 'ish_manager/leads/index_rows', leads: @email_conversation.leads
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
- = link_to email_contexts_for_lead_path( lead ) do
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
- = link_to ctx.subject, email_context_path(ctx)
26
- = pp_date ctx.sent_at
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.440
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-24 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails