ish_manager 0.1.8.485 → 0.1.8.487

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: '02678fe84b00fba305b44750200135609fd9a241f201559c5cebf9b1883882e0'
4
- data.tar.gz: '0584dbda773a9d2767f6f8c444bf23874c1a9d26cfe6f5d0ffdc4c92568c05eb'
3
+ metadata.gz: 33e51b9b4ac4f6e3ec605e6668b6b2688a840a7bca1672ae916a127e8392415d
4
+ data.tar.gz: 01e58fe707cc02dc8addb155cd08390653a09b159c5ca035adef3ed238e430f4
5
5
  SHA512:
6
- metadata.gz: a46b672da3150b86baa338ccbfc90847b8cf9a277386bddc0ac3d379ce2f90ccf76d002ef56f2ce5f6c1afb6513b69f4bf6bb161b7955e44d3d1c2ceed2e9aa9
7
- data.tar.gz: 34940ee437929577ef05d699a8ea1705a379ff4d500695591924439498cc2610068f72e9c838b6185ec71b026cc572841f2e359292ced736d5ebf65aa0d8c261
6
+ metadata.gz: 3244e5262927a77611abe82f489a93e9f3179e5fe1ac4d93b65d944530f4785206de0a61e0d0214345905a34f767a9919bfec9b391411bed67ecc74b309d2713
7
+ data.tar.gz: 6701257ddbf4376754f7a33fc26a6f32663c684475e85e234a8acdd9861d7a4da6e9df7398e04c041b1bcf7445fbce6f84e6cbe6b19ab36dabad7390fc958f82
@@ -1,6 +1,7 @@
1
1
 
2
2
  class IshManager::LeadActionTemplatesController < IshManager::ApplicationController
3
3
 
4
+
4
5
  def create
5
6
  authorize! :create, Office::LeadActionTemplate
6
7
  @tmpl = ::Office::LeadActionTemplate.new params[:tmpl].permit!
@@ -23,5 +24,10 @@ class IshManager::LeadActionTemplatesController < IshManager::ApplicationControl
23
24
  @new_lat = ::Office::LeadActionTemplate.new
24
25
  end
25
26
 
27
+ def new
28
+ authorize! :new, Office::LeadActionTemplate
29
+ @tmpl = ::Office::LeadActionTemplate.new
30
+ end
31
+
26
32
  end
27
33
 
@@ -1,8 +1,16 @@
1
1
 
2
2
  class IshManager::LeadActionsController < IshManager::ApplicationController
3
3
 
4
+ def edit
5
+ @lead_action = Office::LeadAction.find params[:id]
6
+ @olats_list = OLAT.list
7
+ @leads_list = Lead.list
8
+ authorize! :edit, @lead_action
9
+ end
10
+
4
11
  def index
5
12
  authorize! :index, Office::LeadAction
13
+ @lead_action_templates = Office::LeadActionTemplate.all
6
14
  @lead_actions = Office::LeadAction.all
7
15
  end
8
16
 
@@ -0,0 +1,13 @@
1
+
2
+ class ::IshManager::UnsubscribesController < IshManager::ApplicationController
3
+
4
+ def index
5
+ authorize! :index, Ish::EmailUnsubscribe
6
+ @unsubscribes = Ish::EmailUnsubscribe.all
7
+ lead_ids = @unsubscribes.map(&:lead_id).compact
8
+ @leads_h = Lead.find_to_h( lead_ids )
9
+ puts! @leads_h, 'ddz'
10
+ end
11
+
12
+ end
13
+
@@ -92,23 +92,19 @@
92
92
 
93
93
  %ul
94
94
  %li
95
+ = link_to 'OLATs', lead_action_templates_path
96
+ = link_to '[+]', new_lead_action_template_path
95
97
  = link_to 'Lead Actions', lead_actions_path
96
- %li
97
- = link_to 'Lead Action Templatess', lead_action_templates_path
98
- -# = link_to '[+]', new_lead_action_template_path
98
+
99
+
99
100
  %li
100
101
  = link_to "Campaigns (#{Ish::EmailCampaign.all.length})", email_campaigns_path
101
102
  = link_to '[+]', new_email_campaign_path
102
103
  %li
103
104
  = link_to "OActions (#{Office::Action.all.length})", office_actions_path
104
105
  = link_to '[+]', new_office_action_path
105
-
106
- %ul
107
106
  %li
108
- = link_to 'Products & Prices', products_path
109
- %li
110
- = link_to 'Subscriptions', subscriptions_path
111
- = link_to '[+]', new_wco_subscription_path
107
+ = link_to 'Unsubs', unsubscribes_path
112
108
 
113
109
  .c
114
110
 
@@ -122,6 +118,14 @@
122
118
  = link_to 'Appliance\'s', appliances_path
123
119
  %li
124
120
  = link_to 'Serverhost\'s', serverhosts_path
121
+ %ul
122
+ %li
123
+ = link_to 'Products & Prices', products_path
124
+ %li
125
+ = link_to 'Subscriptions', subscriptions_path
126
+ = link_to '[+]', new_wco_subscription_path
127
+
128
+
125
129
  .c
126
130
 
127
131
 
@@ -45,7 +45,6 @@
45
45
  %th From emails
46
46
  %th Subject
47
47
  %th Datetime
48
- %th Tags
49
48
 
50
49
  - @email_conversations.each do |conv|
51
50
  %tr{ class: [ conv.state ] }
@@ -66,12 +65,6 @@
66
65
  .date= pp_date conv.latest_at
67
66
  .time= pp_time conv.latest_at
68
67
 
69
- %td
70
- .tags
71
- &lt;tags>
72
- -# - conv.tags.each do |tag|
73
- -# .chip
74
- -# = tag.name
75
68
 
76
69
  %br
77
70
  = render 'paginate', resource: @email_conversations, param_name: :conv_page, views_prefix: :ish_manager
@@ -0,0 +1,12 @@
1
+
2
+ <table cellpadding="0" cellspacing="0" width="100%">
3
+ <tr>
4
+ <td align="center">
5
+ <br />
6
+ <img
7
+ src="https://d15g8hc4183yn4.cloudfront.net/wp-content/uploads/2022/09/29185755/259x66-WasyaCo-Logo-YellowShadow.png"
8
+ alt="Wasya Co [logo]" />
9
+ </td>
10
+ </tr>
11
+ </table>
12
+ <br /><br />
@@ -45,11 +45,6 @@
45
45
  text-decoration: underline;
46
46
  }
47
47
 
48
-
49
-
50
-
51
-
52
-
53
48
  p {
54
49
  margin: 10px 0;
55
50
  padding: 0;
@@ -827,6 +822,9 @@
827
822
  <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer">
828
823
  <tr>
829
824
  <td valign="top" class="bodyContainer">
825
+
826
+ <%= render 'ish_manager/email_templates/header_logo' %>
827
+
830
828
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock"
831
829
  style="min-width:100%;">
832
830
  <tbody class="mcnTextBlockOuter">
@@ -1096,7 +1094,7 @@
1096
1094
  <td valign="top" class="mcnTextContent"
1097
1095
  style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;">
1098
1096
 
1099
- <p style="font-size:18px !important;">Thank you! Your response will help us improve the way we provide value to our customers!</p>
1097
+ <p style="font-size:18px !important;">Thank you! Your response will help us improve the way we provide value to our customers.</p>
1100
1098
 
1101
1099
  </td>
1102
1100
  </tr>
@@ -853,18 +853,7 @@
853
853
  <td align="right" valign="top" class="mcnTextContent"
854
854
  style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;">
855
855
 
856
- <table cellpadding="0" cellspacing="0" width="100%">
857
- <tr>
858
- <td align="center">
859
- <br />
860
- <img
861
- src="https://d15g8hc4183yn4.cloudfront.net/wp-content/uploads/2022/09/29185755/259x66-WasyaCo-Logo-YellowShadow.png"
862
- alt="Wasya Co [logo]" />
863
- </td>
864
- </tr>
865
- </table>
866
- <br /><br />
867
-
856
+ <%= render 'ish_manager/email_templates/header_logo' %>
868
857
 
869
858
  <!-- 2023-09-23 BEGIN -->
870
859
  <table border="0" cellpadding="0" cellspacing="0" width="100%"
@@ -0,0 +1,12 @@
1
+
2
+ .lead-action-templates--list
3
+ .flex-row
4
+ - @lead_action_templates.each do |lat|
5
+ .card
6
+ .flex-row
7
+ = link_to '[~]', edit_lead_action_template_path( lat )
8
+ = lat.slug
9
+ %ul
10
+ -# - %w| slug kind |
11
+ - %w| config_json action_exe |.each do |k|
12
+ %li <b>#{k}:</b> #{lat[k]}
@@ -2,10 +2,7 @@
2
2
  .lead-action-templates-index.maxwidth
3
3
  %h5 Lead Action Templates
4
4
 
5
- %ul
6
- - @tmpls.each do |tmpl|
7
- %li
8
- = link_to "[~ #{tmpl.slug}]", edit_lead_action_template_path( tmpl )
5
+ = render 'ish_manager/lead_action_templates/list'
9
6
 
10
7
  %hr
11
8
  = render 'form', tmpl: @new_lat
@@ -0,0 +1,5 @@
1
+
2
+ .lead-action-templates-edit.maxwidth
3
+ %h5 New Lead Action Template
4
+
5
+ = render 'form', tmpl: @tmpl
@@ -0,0 +1,19 @@
1
+
2
+ - url = lead_action.new_record? ? lead_actions_path : lead_action_path( lead_action )
3
+ .lead-actions--form
4
+ = form_for lead_action, url: url, as: :lead_action do |f|
5
+
6
+ .field
7
+ %label tmpl
8
+ = f.select :lead_action_template, options_for_select( @olats_list, selected: lead_action.tmpl_id ), {}, class: :select2
9
+
10
+ .field
11
+ %label lead
12
+ = f.select :lead_id, options_for_select( @leads_list, selected: lead_action.lead_id ), {}, class: :select2
13
+
14
+ .field
15
+ %label params
16
+ = f.text_area :params, class: 'large', value: JSON.pretty_generate( JSON.parse( lead_action.params ))
17
+
18
+ .actions
19
+ = f.submit 'Submit'
@@ -0,0 +1,5 @@
1
+
2
+ .lead-actions-edit.maxwidth
3
+ %h5 Edit Lead Action
4
+
5
+ = render 'form', lead_action: @lead_action
@@ -1,12 +1,29 @@
1
1
 
2
2
  .lead-actions-index.maxwidth
3
- %h5 Lead Actions
3
+
4
+ %h5.collapse-expand#lats
5
+ Lead Action Templates
6
+ = link_to '[+]', new_lead_action_template_path
7
+
8
+ = render 'ish_manager/lead_action_templates/list'
9
+
10
+ %hr
11
+
12
+ %h5.collapse-expand#las
13
+ Lead Actions
14
+ = link_to '[+]', new_lead_action_path
4
15
 
5
16
  %ul
6
17
  - @lead_actions.each do |la|
7
18
  %li
19
+ = link_to '[~]', edit_lead_action_path( la )
8
20
  %ul
9
- - JSON.parse( la.params ).each do |k, v|
10
- %li
11
- = k
12
- = v
21
+ - %w| tmpl lead |.each do |k|
22
+ %li <b>#{k}:</b> #{la.send( k )}
23
+ %li
24
+ <b>params:</b>
25
+ %ul
26
+ - JSON.parse( la.params ).each do |k, v|
27
+ %li
28
+ = k
29
+ = v
@@ -0,0 +1,20 @@
1
+
2
+ .unsubscribes-index.maxwidth
3
+ %h5 Unsubscribes
4
+
5
+ %table.bordered.data-table
6
+ %thead
7
+ %tr
8
+ %td Lead
9
+ %td Date
10
+ %td campaign_id
11
+ %td template_id
12
+
13
+
14
+ - @unsubscribes.each do |i|
15
+ %tr
16
+ %td= @leads_h[i.lead_id]
17
+ %td= i.unsubscribed_at
18
+ %td= i.campaign
19
+ %td= i.template
20
+
data/config/routes.rb CHANGED
@@ -150,6 +150,11 @@ IshManager::Engine.routes.draw do
150
150
  get 'subscriptions/new_wco', to: 'subscriptions#new_wco', as: :new_wco_subscription
151
151
  resources :subscriptions
152
152
 
153
+ ##
154
+ ## U
155
+ ##
156
+ resources :unsubscribes
157
+
153
158
  resources :user_profiles do
154
159
  resources :newsitems
155
160
  end
@@ -157,6 +162,9 @@ IshManager::Engine.routes.draw do
157
162
  # resources :newsitems
158
163
  end
159
164
 
165
+ ##
166
+ ## V
167
+ ##
160
168
  resources :videos
161
169
 
162
170
  end
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.485
4
+ version: 0.1.8.487
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -521,6 +521,7 @@ files:
521
521
  - app/controllers/ish_manager/scheduled_email_actions_controller.rb
522
522
  - app/controllers/ish_manager/serverhosts_controller.rb
523
523
  - app/controllers/ish_manager/subscriptions_controller.rb
524
+ - app/controllers/ish_manager/unsubscribes_controller.rb
524
525
  - app/controllers/ish_manager/user_profiles_controller.rb
525
526
  - app/controllers/ish_manager/videos_controller.rb
526
527
  - app/helpers/ish_manager/application_helper.rb
@@ -638,6 +639,7 @@ files:
638
639
  - app/views/ish_manager/email_templates/_form_mini.haml
639
640
  - app/views/ish_manager/email_templates/_form_reply_mini.haml
640
641
  - app/views/ish_manager/email_templates/_form_schedule_mini.haml
642
+ - app/views/ish_manager/email_templates/_header_logo.html.erb
641
643
  - app/views/ish_manager/email_templates/_index.haml
642
644
  - app/views/ish_manager/email_templates/_m20221201react.html.erb
643
645
  - app/views/ish_manager/email_templates/_m20221222merryxmas.html.erb
@@ -753,8 +755,12 @@ files:
753
755
  - app/views/ish_manager/kaminari/_paginator.html.erb
754
756
  - app/views/ish_manager/kaminari/_prev_page.html.erb
755
757
  - app/views/ish_manager/lead_action_templates/_form.haml
758
+ - app/views/ish_manager/lead_action_templates/_list.haml
756
759
  - app/views/ish_manager/lead_action_templates/edit.haml
757
760
  - app/views/ish_manager/lead_action_templates/index.haml
761
+ - app/views/ish_manager/lead_action_templates/new.haml
762
+ - app/views/ish_manager/lead_actions/_form.haml
763
+ - app/views/ish_manager/lead_actions/edit.haml
758
764
  - app/views/ish_manager/lead_actions/index.haml
759
765
  - app/views/ish_manager/leads/_form.haml
760
766
  - app/views/ish_manager/leads/_form_import.haml
@@ -848,6 +854,7 @@ files:
848
854
  - app/views/ish_manager/trash/email_campaigns-trash/edit.haml
849
855
  - app/views/ish_manager/trash/email_campaigns-trash/index.haml
850
856
  - app/views/ish_manager/trash/email_campaigns-trash/new.haml
857
+ - app/views/ish_manager/unsubscribes/index.haml
851
858
  - app/views/ish_manager/user_profiles/_form.haml
852
859
  - app/views/ish_manager/user_profiles/_show.haml
853
860
  - app/views/ish_manager/user_profiles/edit.haml