ish_manager 0.1.8.427 → 0.1.8.429

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: '02538b7db4c131f456474b688ba92ae8de961ad3c2256eea3b06075d13ac2352'
4
- data.tar.gz: 72615354fe52eef9bccb16e256e0cedcf19aaf241315433ef14b457e388b7356
3
+ metadata.gz: a0abc37d22ccfddfa3800f1fed6895e74277e0a4d7c830daad34db5d1adf6764
4
+ data.tar.gz: 715a9713d49199bc20908be318498bbb0626b709bf085a7e333099082f06cd83
5
5
  SHA512:
6
- metadata.gz: 90add5ac708ee81f2af050e9f4bc349ca0b1d71c6cb7e2e49bd0aac56c3c37bebc7bdd3f9f88b0e3a28d8941a39100f7b2debaef545cf461efb0d756c4c3513b
7
- data.tar.gz: 2a7071698626767453ad592e4ae14de260ded882b633c50ad8eaedd0df4dd09625eb2085a201429704016b46b37042d057190d1e5172c307ea4816865afed8b7
6
+ metadata.gz: 12a1ef887def22ebf1b016dd0aa5b1a5dfaf4fd3baa3675d3bba651fc60ae2353949bf6f51623d9c57d60efd2624bee8ad303199bbf8439481e7c54ab37a93a9
7
+ data.tar.gz: ba86068a4bc4f2c00a9cb3aaf292952f87dec3da30708408d67937cf794bafea23d871354eec685fd712aff2edc95eb8a74d5c3f2bdf34bb5f4d4b14795384f2
@@ -12,6 +12,7 @@
12
12
  .emails-ns, // emails namespace
13
13
  .iro-purses-my,
14
14
  .leads-edit,
15
+ .leads--index,
15
16
  .leads-index,
16
17
  .leads-show,
17
18
  .scheduled-email-actions--form,
@@ -23,6 +23,11 @@ class IshManager::ApplicationController < ActionController::Base
23
23
  render 'home'
24
24
  end
25
25
 
26
+ def tinymce
27
+ authorize! :home, IshManager::Ability
28
+ render layout: false
29
+ end
30
+
26
31
  ##
27
32
  ## private
28
33
  ##
@@ -14,6 +14,12 @@ class ::IshManager::CategoriesController < IshManager::ApplicationController
14
14
  @category = WpTag.find params[:id]
15
15
  authorize! :show, @category
16
16
 
17
+ ## same as in leads#index
18
+ @leads = @category.leads
19
+ if params[:q].present?
20
+ @leads = @leads.where(" email LIKE ? ", "%#{params[:q]}%" )
21
+ end
22
+ @leads = @leads.page( params[:leads_page] ).per( current_profile.per_page )
17
23
  end
18
24
 
19
25
  end
@@ -38,6 +38,11 @@ class ::IshManager::EmailCampaignsController < IshManager::ApplicationController
38
38
  def show
39
39
  @campaign = Ish::EmailCampaign.find params[:id]
40
40
  authorize! :show, @campaign
41
+ @leads = @campaign.leads
42
+ if params[:q].present?
43
+ @leads = @leads.where(" email LIKE ? ", "%#{params[:q]}%" )
44
+ end
45
+ @leads = @leads.page( params[:leads_page ] ).per( current_profile.per_page )
41
46
  end
42
47
 
43
48
  def update
@@ -35,7 +35,8 @@ class ::IshManager::EmailTemplatesController < ::IshManager::ApplicationControll
35
35
  Ish::EmailTemplate.find_by({ slug: params[:id] })
36
36
  authorize! :iframe_src, @email_template
37
37
 
38
- @ctx = Ctx.new({ email_template: @tmpl, lead_id: 999 })
38
+ pox = Lead.find_by({ email: 'poxlovi@gmail.com' })
39
+ @ctx = Ctx.new({ email_template: @tmpl, lead_id: pox.id })
39
40
 
40
41
  @utm_tracking_str = {
41
42
  'cid' => @ctx.lead_id,
@@ -28,6 +28,7 @@
28
28
  = f.label :per_page
29
29
  = f.select :per_page, options_for_select([ 10, 25, 50, 100, 250, 500, 1000], selected: @current_profile.per_page)
30
30
  = f.submit 'Go'
31
+ = link_to 'RTEditor', application_tinymce_path, target: :_blank
31
32
 
32
33
  .c
33
34
  = render 'debug' if !Rails.env.production?
@@ -0,0 +1,33 @@
1
+
2
+ <html>
3
+ <head>
4
+ <!-- include libraries(jQuery, bootstrap) -->
5
+ <link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
6
+ <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
7
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
8
+
9
+ <!-- include codemirror (codemirror.css, codemirror.js, xml.js, formatting.js) -->
10
+ <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.css">
11
+ <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/theme/monokai.css">
12
+ <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/codemirror.js"></script>
13
+ <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.20.0/mode/xml/xml.js"></script>
14
+ <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/codemirror/2.36.0/formatting.js"></script>
15
+
16
+ <!-- include summernote css/js-->
17
+ <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css">
18
+ <script type="text/javascript" src="//cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
19
+ </head>
20
+ <body>
21
+
22
+ <textarea class='tinymce'>
23
+ </textarea>
24
+
25
+ <script>
26
+ $('.tinymce').summernote({
27
+ height: 150, //set editable area's height
28
+ codemirror: { // codemirror options
29
+ theme: 'monokai'
30
+ }
31
+ });
32
+ </script>
33
+ </body></html>
@@ -3,8 +3,5 @@
3
3
  .header
4
4
  %h2.title Category/Tag `#{@category.slug}`
5
5
 
6
- .leads
7
- %h3 Leads (#{@category.leads.length})
8
- %ol
9
- - @category.leads.each do |lead|
10
- %li= link_to lead.email, lead_path(lead)
6
+ = render 'ish_manager/leads/index', leads: @leads, email_contexts: {}, search_path: category_path(@category)
7
+
@@ -14,10 +14,4 @@
14
14
  -# %li Send At: #{@campaign.send_at}
15
15
 
16
16
  .collapse-expand#campaignLeads Email Campaign leads (#{@campaign.campaign_leads.length})
17
- %ul.email-campaign-leads.items.browser-default
18
- - @campaign.campaign_leads.each do |clead|
19
- %li.item
20
- .inline-block= button_to '[x]', email_campaign_lead_path(clead), method: :delete, :data => { :confirm => 'Are you sure?' }
21
- = link_to clead.lead.email, lead_path(clead.lead.id)
22
- (#{clead.lead.email_contexts.length} ctxs)
23
-
17
+ = render 'ish_manager/leads/index', leads: @leads, search_path: email_campaign_path(@campaign), email_contexts: {}
@@ -30,7 +30,7 @@
30
30
  .label-save-preview= f.submit 'Save & Preview'
31
31
  .tabs
32
32
  .tab-raw
33
- = f.text_area :body, class: 'tinymce'
33
+ = f.text_area :body
34
34
  .tab-preview
35
35
  - if email_template.persisted?
36
36
  -# .descr= render "ish_manager/email_templates/#{email_template.layout}", ctx: Ish::EmailContext.new, tmpl: email_template
@@ -102,245 +102,164 @@
102
102
  .mcnDividerBlock{
103
103
  table-layout:fixed !important;
104
104
  }
105
- /*
106
- @tab Page
107
- @section Background Style
108
- @tip Set the background color and top border for your email. You may want to choose colors that match your company's branding.
109
- */
105
+
110
106
  body,#bodyTable{
111
- /*@editable*/background-color:#FAFAFA;
107
+ background-color:#FAFAFA;
112
108
  }
113
- /*
114
- @tab Page
115
- @section Background Style
116
- @tip Set the background color and top border for your email. You may want to choose colors that match your company's branding.
117
- */
109
+
118
110
  #bodyCell{
119
- /*@editable*/border-top:0;
111
+ border-top:0;
120
112
  }
121
- /*
122
- @tab Page
123
- @section Email Border
124
- @tip Set the border for your email.
125
- */
113
+
126
114
  .templateContainer{
127
- /*@editable*/border:0;
128
- }
129
- /*
130
- @tab Page
131
- @section Heading 1
132
- @tip Set the styling for all first-level headings in your emails. These should be the largest of your headings.
133
- @style heading 1
134
- */
115
+ border:0;
116
+ }
135
117
  h1{
136
- /*@editable*/color:#202020;
137
- /*@editable*/font-family:Helvetica;
138
- /*@editable*/font-size:26px;
139
- /*@editable*/font-style:normal;
140
- /*@editable*/font-weight:bold;
141
- /*@editable*/line-height:125%;
142
- /*@editable*/letter-spacing:normal;
143
- /*@editable*/text-align:left;
144
- }
145
- /*
146
- @tab Page
147
- @section Heading 2
148
- @tip Set the styling for all second-level headings in your emails.
149
- @style heading 2
150
- */
118
+ color:#202020;
119
+ font-family:Helvetica;
120
+ font-size:26px;
121
+ font-style:normal;
122
+ font-weight:bold;
123
+ line-height:125%;
124
+ letter-spacing:normal;
125
+ text-align:left;
126
+ }
127
+
151
128
  h2{
152
- /*@editable*/color:#202020;
153
- /*@editable*/font-family:Helvetica;
154
- /*@editable*/font-size:22px;
155
- /*@editable*/font-style:normal;
156
- /*@editable*/font-weight:bold;
157
- /*@editable*/line-height:125%;
158
- /*@editable*/letter-spacing:normal;
159
- /*@editable*/text-align:left;
160
- }
161
- /*
162
- @tab Page
163
- @section Heading 3
164
- @tip Set the styling for all third-level headings in your emails.
165
- @style heading 3
166
- */
129
+ color:#202020;
130
+ font-family:Helvetica;
131
+ font-size:22px;
132
+ font-style:normal;
133
+ font-weight:bold;
134
+ line-height:125%;
135
+ letter-spacing:normal;
136
+ text-align:left;
137
+ }
138
+
167
139
  h3{
168
- /*@editable*/color:#202020;
169
- /*@editable*/font-family:Helvetica;
170
- /*@editable*/font-size:20px;
171
- /*@editable*/font-style:normal;
172
- /*@editable*/font-weight:bold;
173
- /*@editable*/line-height:125%;
174
- /*@editable*/letter-spacing:normal;
175
- /*@editable*/text-align:left;
176
- }
177
- /*
178
- @tab Page
179
- @section Heading 4
180
- @tip Set the styling for all fourth-level headings in your emails. These should be the smallest of your headings.
181
- @style heading 4
182
- */
140
+ color:#202020;
141
+ font-family:Helvetica;
142
+ font-size:20px;
143
+ font-style:normal;
144
+ font-weight:bold;
145
+ line-height:125%;
146
+ letter-spacing:normal;
147
+ text-align:left;
148
+ }
149
+
183
150
  h4{
184
- /*@editable*/color:#202020;
185
- /*@editable*/font-family:Helvetica;
186
- /*@editable*/font-size:18px;
187
- /*@editable*/font-style:normal;
188
- /*@editable*/font-weight:bold;
189
- /*@editable*/line-height:125%;
190
- /*@editable*/letter-spacing:normal;
191
- /*@editable*/text-align:left;
192
- }
193
- /*
194
- @tab Preheader
195
- @section Preheader Style
196
- @tip Set the background color and borders for your email's preheader area.
197
- */
151
+ color:#202020;
152
+ font-family:Helvetica;
153
+ font-size:18px;
154
+ font-style:normal;
155
+ font-weight:bold;
156
+ line-height:125%;
157
+ letter-spacing:normal;
158
+ text-align:left;
159
+ }
160
+
198
161
  #templatePreheader{
199
- /*@editable*/background-color:#FAFAFA;
200
- /*@editable*/background-image:none;
201
- /*@editable*/background-repeat:no-repeat;
202
- /*@editable*/background-position:center;
203
- /*@editable*/background-size:cover;
204
- /*@editable*/border-top:0;
205
- /*@editable*/border-bottom:0;
206
- /*@editable*/padding-top:9px;
207
- /*@editable*/padding-bottom:9px;
208
- }
209
- /*
210
- @tab Preheader
211
- @section Preheader Text
212
- @tip Set the styling for your email's preheader text. Choose a size and color that is easy to read.
213
- */
162
+ background-color:#FAFAFA;
163
+ background-image:none;
164
+ background-repeat:no-repeat;
165
+ background-position:center;
166
+ background-size:cover;
167
+ border-top:0;
168
+ border-bottom:0;
169
+ padding-top:9px;
170
+ padding-bottom:9px;
171
+ }
172
+
214
173
  #templatePreheader .mcnTextContent,#templatePreheader .mcnTextContent p{
215
- /*@editable*/color:#656565;
216
- /*@editable*/font-family:Helvetica;
217
- /*@editable*/font-size:12px;
218
- /*@editable*/line-height:150%;
219
- /*@editable*/text-align:left;
220
- }
221
- /*
222
- @tab Preheader
223
- @section Preheader Link
224
- @tip Set the styling for your email's preheader links. Choose a color that helps them stand out from your text.
225
- */
174
+ color:#656565;
175
+ font-family:Helvetica;
176
+ font-size:12px;
177
+ line-height:150%;
178
+ text-align:left;
179
+ }
180
+
226
181
  #templatePreheader .mcnTextContent a,#templatePreheader .mcnTextContent p a{
227
- /*@editable*/color:#656565;
228
- /*@editable*/font-weight:normal;
229
- /*@editable*/text-decoration:underline;
230
- }
231
- /*
232
- @tab Header
233
- @section Header Style
234
- @tip Set the background color and borders for your email's header area.
235
- */
182
+ color:#656565;
183
+ font-weight:normal;
184
+ text-decoration:underline;
185
+ }
186
+
236
187
  #templateHeader{
237
- /*@editable*/background-color:#FFFFFF;
238
- /*@editable*/background-image:none;
239
- /*@editable*/background-repeat:no-repeat;
240
- /*@editable*/background-position:center;
241
- /*@editable*/background-size:cover;
242
- /*@editable*/border-top:0;
243
- /*@editable*/border-bottom:0;
244
- /*@editable*/padding-top:9px;
245
- /*@editable*/padding-bottom:0;
246
- }
247
- /*
248
- @tab Header
249
- @section Header Text
250
- @tip Set the styling for your email's header text. Choose a size and color that is easy to read.
251
- */
188
+ background-color:#FFFFFF;
189
+ background-image:none;
190
+ background-repeat:no-repeat;
191
+ background-position:center;
192
+ background-size:cover;
193
+ border-top:0;
194
+ border-bottom:0;
195
+ padding-top:9px;
196
+ padding-bottom:0;
197
+ }
198
+
252
199
  #templateHeader .mcnTextContent,#templateHeader .mcnTextContent p{
253
- /*@editable*/color:#202020;
254
- /*@editable*/font-family:Helvetica;
255
- /*@editable*/font-size:16px;
256
- /*@editable*/line-height:150%;
257
- /*@editable*/text-align:left;
258
- }
259
- /*
260
- @tab Header
261
- @section Header Link
262
- @tip Set the styling for your email's header links. Choose a color that helps them stand out from your text.
263
- */
200
+ color:#202020;
201
+ font-family:Helvetica;
202
+ font-size:16px;
203
+ line-height:150%;
204
+ text-align:left;
205
+ }
206
+
264
207
  #templateHeader .mcnTextContent a,#templateHeader .mcnTextContent p a{
265
- /*@editable*/color:#007C89;
266
- /*@editable*/font-weight:normal;
267
- /*@editable*/text-decoration:underline;
268
- }
269
- /*
270
- @tab Body
271
- @section Body Style
272
- @tip Set the background color and borders for your email's body area.
273
- */
208
+ color:#007C89;
209
+ font-weight:normal;
210
+ text-decoration:underline;
211
+ }
212
+
274
213
  #templateBody{
275
- /*@editable*/background-color:#FFFFFF;
276
- /*@editable*/background-image:none;
277
- /*@editable*/background-repeat:no-repeat;
278
- /*@editable*/background-position:center;
279
- /*@editable*/background-size:cover;
280
- /*@editable*/border-top:0;
281
- /*@editable*/border-bottom:2px solid #EAEAEA;
282
- /*@editable*/padding-top:0;
283
- /*@editable*/padding-bottom:9px;
284
- }
285
- /*
286
- @tab Body
287
- @section Body Text
288
- @tip Set the styling for your email's body text. Choose a size and color that is easy to read.
289
- */
214
+ background-color:#FFFFFF;
215
+ background-image:none;
216
+ background-repeat:no-repeat;
217
+ background-position:center;
218
+ background-size:cover;
219
+ border-top:0;
220
+ border-bottom:2px solid #EAEAEA;
221
+ padding-top:0;
222
+ padding-bottom:9px;
223
+ }
224
+
290
225
  #templateBody .mcnTextContent,#templateBody .mcnTextContent p{
291
- /*@editable*/color:#202020;
292
- /*@editable*/font-family:Helvetica;
293
- /*@editable*/font-size:16px;
294
- /*@editable*/line-height:150%;
295
- /*@editable*/text-align:left;
296
- }
297
- /*
298
- @tab Body
299
- @section Body Link
300
- @tip Set the styling for your email's body links. Choose a color that helps them stand out from your text.
301
- */
226
+ color:#202020;
227
+ font-family:Helvetica;
228
+ font-size:16px;
229
+ line-height:150%;
230
+ text-align:left;
231
+ }
232
+
302
233
  #templateBody .mcnTextContent a,#templateBody .mcnTextContent p a{
303
- /*@editable*/color:#007C89;
304
- /*@editable*/font-weight:normal;
305
- /*@editable*/text-decoration:underline;
306
- }
307
- /*
308
- @tab Footer
309
- @section Footer Style
310
- @tip Set the background color and borders for your email's footer area.
311
- */
234
+ color:#007C89;
235
+ font-weight:normal;
236
+ text-decoration:underline;
237
+ }
238
+
312
239
  #templateFooter{
313
- /*@editable*/background-color:#FAFAFA;
314
- /*@editable*/background-image:none;
315
- /*@editable*/background-repeat:no-repeat;
316
- /*@editable*/background-position:center;
317
- /*@editable*/background-size:cover;
318
- /*@editable*/border-top:0;
319
- /*@editable*/border-bottom:0;
320
- /*@editable*/padding-top:9px;
321
- /*@editable*/padding-bottom:9px;
322
- }
323
- /*
324
- @tab Footer
325
- @section Footer Text
326
- @tip Set the styling for your email's footer text. Choose a size and color that is easy to read.
327
- */
240
+ background-color:#FAFAFA;
241
+ background-image:none;
242
+ background-repeat:no-repeat;
243
+ background-position:center;
244
+ background-size:cover;
245
+ border-top:0;
246
+ border-bottom:0;
247
+ padding-top:9px;
248
+ padding-bottom:9px;
249
+ }
250
+
328
251
  #templateFooter .mcnTextContent,#templateFooter .mcnTextContent p{
329
- /*@editable*/color:#656565;
330
- /*@editable*/font-family:Helvetica;
331
- /*@editable*/font-size:12px;
332
- /*@editable*/line-height:150%;
333
- /*@editable*/text-align:center;
334
- }
335
- /*
336
- @tab Footer
337
- @section Footer Link
338
- @tip Set the styling for your email's footer links. Choose a color that helps them stand out from your text.
339
- */
252
+ color:#656565;
253
+ font-family:Helvetica;
254
+ font-size:12px;
255
+ line-height:150%;
256
+ text-align:center;
257
+ }
258
+
340
259
  #templateFooter .mcnTextContent a,#templateFooter .mcnTextContent p a{
341
- /*@editable*/color:#656565;
342
- /*@editable*/font-weight:normal;
343
- /*@editable*/text-decoration:underline;
260
+ color:#656565;
261
+ font-weight:normal;
262
+ text-decoration:underline;
344
263
  }
345
264
  @media only screen and (min-width:768px){
346
265
  .templateContainer{
@@ -431,112 +350,72 @@
431
350
  }
432
351
 
433
352
  } @media only screen and (max-width: 480px){
434
- /*
435
- @tab Mobile Styles
436
- @section Heading 1
437
- @tip Make the first-level headings larger in size for better readability on small screens.
438
- */
353
+
439
354
  h1{
440
- /*@editable*/font-size:22px !important;
441
- /*@editable*/line-height:125% !important;
355
+ font-size:22px !important;
356
+ line-height:125% !important;
442
357
  }
443
358
 
444
359
  } @media only screen and (max-width: 480px){
445
- /*
446
- @tab Mobile Styles
447
- @section Heading 2
448
- @tip Make the second-level headings larger in size for better readability on small screens.
449
- */
360
+
450
361
  h2{
451
- /*@editable*/font-size:20px !important;
452
- /*@editable*/line-height:125% !important;
362
+ font-size:20px !important;
363
+ line-height:125% !important;
453
364
  }
454
365
 
455
366
  } @media only screen and (max-width: 480px){
456
- /*
457
- @tab Mobile Styles
458
- @section Heading 3
459
- @tip Make the third-level headings larger in size for better readability on small screens.
460
- */
367
+
461
368
  h3{
462
- /*@editable*/font-size:18px !important;
463
- /*@editable*/line-height:125% !important;
369
+ font-size:18px !important;
370
+ line-height:125% !important;
464
371
  }
465
372
 
466
373
  } @media only screen and (max-width: 480px){
467
- /*
468
- @tab Mobile Styles
469
- @section Heading 4
470
- @tip Make the fourth-level headings larger in size for better readability on small screens.
471
- */
374
+
472
375
  h4{
473
- /*@editable*/font-size:16px !important;
474
- /*@editable*/line-height:150% !important;
376
+ font-size:16px !important;
377
+ line-height:150% !important;
475
378
  }
476
379
 
477
380
  } @media only screen and (max-width: 480px){
478
- /*
479
- @tab Mobile Styles
480
- @section Boxed Text
481
- @tip Make the boxed text larger in size for better readability on small screens. We recommend a font size of at least 16px.
482
- */
381
+
483
382
  .mcnBoxedTextContentContainer .mcnTextContent,.mcnBoxedTextContentContainer .mcnTextContent p{
484
- /*@editable*/font-size:14px !important;
485
- /*@editable*/line-height:150% !important;
383
+ font-size:14px !important;
384
+ line-height:150% !important;
486
385
  }
487
386
 
488
387
  } @media only screen and (max-width: 480px){
489
- /*
490
- @tab Mobile Styles
491
- @section Preheader Visibility
492
- @tip Set the visibility of the email's preheader on small screens. You can hide it to save space.
493
- */
388
+
494
389
  #templatePreheader{
495
- /*@editable*/display:block !important;
390
+ display:block !important;
496
391
  }
497
392
 
498
393
  } @media only screen and (max-width: 480px){
499
- /*
500
- @tab Mobile Styles
501
- @section Preheader Text
502
- @tip Make the preheader text larger in size for better readability on small screens.
503
- */
394
+
504
395
  #templatePreheader .mcnTextContent,#templatePreheader .mcnTextContent p{
505
- /*@editable*/font-size:14px !important;
506
- /*@editable*/line-height:150% !important;
396
+ font-size:14px !important;
397
+ line-height:150% !important;
507
398
  }
508
399
 
509
400
  } @media only screen and (max-width: 480px){
510
- /*
511
- @tab Mobile Styles
512
- @section Header Text
513
- @tip Make the header text larger in size for better readability on small screens.
514
- */
401
+
515
402
  #templateHeader .mcnTextContent,#templateHeader .mcnTextContent p{
516
- /*@editable*/font-size:16px !important;
517
- /*@editable*/line-height:150% !important;
403
+ font-size:16px !important;
404
+ line-height:150% !important;
518
405
  }
519
406
 
520
407
  } @media only screen and (max-width: 480px){
521
- /*
522
- @tab Mobile Styles
523
- @section Body Text
524
- @tip Make the body text larger in size for better readability on small screens. We recommend a font size of at least 16px.
525
- */
408
+
526
409
  #templateBody .mcnTextContent,#templateBody .mcnTextContent p{
527
- /*@editable*/font-size:16px !important;
528
- /*@editable*/line-height:150% !important;
410
+ font-size:16px !important;
411
+ line-height:150% !important;
529
412
  }
530
413
 
531
414
  } @media only screen and (max-width: 480px){
532
- /*
533
- @tab Mobile Styles
534
- @section Footer Text
535
- @tip Make the footer content text larger in size for better readability on small screens.
536
- */
415
+
537
416
  #templateFooter .mcnTextContent,#templateFooter .mcnTextContent p{
538
- /*@editable*/font-size:14px !important;
539
- /*@editable*/line-height:150% !important;
417
+ font-size:14px !important;
418
+ line-height:150% !important;
540
419
  }
541
420
 
542
421
  }</style></head>
@@ -0,0 +1,13 @@
1
+
2
+ <%= raw ERB.new( @ctx.body ).result %>
3
+
4
+ <br /><br />
5
+ <table class="footer-signature" border="0" >
6
+ <tr>
7
+ <td>
8
+ --<br />
9
+ Victor Pudeyev<br />
10
+ Software Engineering Lead<br />
11
+ <a href="mailto:victor@piousbox.com">victor@piousbox.com</a>
12
+ |
13
+ <a href="https://wasya.co/contact-us-4?<%= @utm_tracking_str %>">Book a chat</a><br />
@@ -0,0 +1,60 @@
1
+
2
+ -#
3
+ -# receives locals: leads , email_contexts , search_path
4
+ -#
5
+ .leads--index.padded
6
+ .header
7
+ %h2.title
8
+ Leads (#{leads.total_count})
9
+ = link_to raw("<i class='fa fa-plus-square'></i>"), new_lead_path
10
+
11
+ .float-right= render 'search', path: search_path
12
+ = form_tag leads_bulkop_path do
13
+ = label_tag 'Act on Selected:'
14
+ = select_tag :op, options_for_select( [[nil,nil]] + Lead::OPS )
15
+ = select_tag :email_campaign_id, options_for_select( @email_campaigns_list )
16
+ = submit_tag 'Go'
17
+
18
+ = paginate leads, param_name: :leads_page
19
+ %table.bordered
20
+ %thead
21
+ %tr
22
+ %th &nbsp;
23
+ %th Name/Email
24
+ %th.company Company
25
+ %th Phone, address
26
+ %th Tag
27
+ %th created_at
28
+ %th Ctx
29
+ %th Sch
30
+
31
+ %tbody
32
+ - leads.each do |lead|
33
+ %tr
34
+ %td= check_box_tag 'lead_ids[]', lead.id
35
+ %td= link_to "#{lead.name} <#{lead.email}>", lead_path( lead )
36
+ %td.company
37
+ = lead.company.company_url
38
+ - if lead.company.name.present?
39
+ <br /><b>#{lead.company.name}</b>
40
+ %td
41
+ .a= lead.phone if lead.phone.present?
42
+ .a= lead.address if lead.address.present?
43
+ %td= lead.wp_tags.map(&:name).join(", ")
44
+ %td= lead.created_at.to_s[0..10]
45
+ %td.ctx
46
+ = email_contexts[lead.email] || '-'
47
+ %td.sch
48
+ = lead.scheduled_email_actions.length
49
+ = link_to '[+]', new_scheduled_email_action_path( lead_id: lead.id )
50
+ -# %ul
51
+ -# - lead.scheduled_email_actions.map do |sch_a|
52
+ -# %li
53
+ -# = link_to sch_a.email_action.slug, edit_scheduled_email_action_path( sch_a )
54
+ -# [x]
55
+
56
+ = paginate leads, param_name: :leads_page
57
+
58
+
59
+
60
+
@@ -1,57 +1,2 @@
1
1
 
2
- .leads-index.padded
3
- .header
4
- %h2.title
5
- #{link_to 'Kept Leads', leads_path} (#{::Lead.kept.count}, #{::Lead.all.count})
6
- = link_to raw("<i class='fa fa-plus-square'></i>"), new_lead_path
7
-
8
- = render 'search', resource: ::Lead
9
- = form_tag leads_bulkop_path do
10
- = label_tag 'Act on Selected:'
11
- = select_tag :op, options_for_select( [[nil,nil]] + Lead::OPS )
12
- = select_tag :email_campaign_id, options_for_select( @email_campaigns_list )
13
- = submit_tag 'Go'
14
-
15
- = paginate @leads, param_name: :leads_page
16
- %table.bordered
17
- %thead
18
- %tr
19
- %th &nbsp;
20
- %th Name/Email
21
- %th.company Company
22
- %th Phone, address
23
- %th Tag
24
- %th created_at
25
- %th Ctx
26
- %th Sch
27
-
28
- %tbody
29
- - @leads.each do |lead|
30
- %tr
31
- %td= check_box_tag 'lead_ids[]', lead.id
32
- %td= link_to "#{lead.name} <#{lead.email}>", lead_path( lead )
33
- %td.company
34
- = lead.company.company_url
35
- - if lead.company.name.present?
36
- <br /><b>#{lead.company.name}</b>
37
- %td
38
- .a= lead.phone if lead.phone.present?
39
- .a= lead.address if lead.address.present?
40
- %td= lead.wp_tags.map(&:name).join(", ")
41
- %td= lead.created_at.to_s[0..10]
42
- %td.ctx
43
- = @email_contexts[lead.email] || '-'
44
- %td.sch
45
- = lead.scheduled_email_actions.length
46
- = link_to '[+]', new_scheduled_email_action_path( lead_id: lead.id )
47
- -# %ul
48
- -# - lead.scheduled_email_actions.map do |sch_a|
49
- -# %li
50
- -# = link_to sch_a.email_action.slug, edit_scheduled_email_action_path( sch_a )
51
- -# [x]
52
-
53
- = paginate @leads, param_name: :leads_page
54
-
55
-
56
-
57
-
2
+ = render 'index', leads: @leads, email_contexts: @email_contexts, search_path: leads_path
@@ -12,8 +12,6 @@
12
12
  %script{ :src => "//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" }
13
13
  = stylesheet_link_tag "//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"
14
14
 
15
- %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
16
- %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
17
15
 
18
16
  = stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", :media => 'all'
19
17
  = stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
@@ -25,6 +23,8 @@
25
23
  = stylesheet_link_tag "//cdn.jsdelivr.net/npm/select2@4.0.0/dist/css/select2.min.css"
26
24
  = javascript_include_tag "//cdn.jsdelivr.net/npm/select2@4.0.0/dist/js/select2.min.js"
27
25
 
26
+ -# %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
27
+ -# %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
28
28
  = stylesheet_link_tag "//cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css"
29
29
  = javascript_include_tag "//cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"
30
30
 
data/config/routes.rb CHANGED
@@ -3,6 +3,8 @@ IshManager::Engine.routes.draw do
3
3
 
4
4
  root :to => 'application#home'
5
5
 
6
+ get 'application/tinymce', to: 'application#tinymce'
7
+
6
8
  # get 'categories', to: 'categories#index'
7
9
  resources :categories
8
10
 
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.427
4
+ version: 0.1.8.429
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-10 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -534,6 +534,7 @@ files:
534
534
  - app/views/ish_manager/application/_profile_pic.haml
535
535
  - app/views/ish_manager/application/_search.haml
536
536
  - app/views/ish_manager/application/home.haml
537
+ - app/views/ish_manager/application/tinymce.html.erb
537
538
  - app/views/ish_manager/application_mailer/shared_galleries.html.erb
538
539
  - app/views/ish_manager/application_mailer/stock_alert.haml
539
540
  - app/views/ish_manager/application_mailer/test_email.html.erb
@@ -594,6 +595,7 @@ files:
594
595
  - app/views/ish_manager/email_templates/_slug-1.html.erb
595
596
  - app/views/ish_manager/email_templates/_slug-2.html.erb
596
597
  - app/views/ish_manager/email_templates/_slug-3.html.erb
598
+ - app/views/ish_manager/email_templates/_tracking_footer.html.erb
597
599
  - app/views/ish_manager/email_templates/_wasyaco_roundborders.html.erb
598
600
  - app/views/ish_manager/email_templates/_wasyaco_social.html.erb
599
601
  - app/views/ish_manager/email_templates/done/_form.haml
@@ -652,6 +654,7 @@ files:
652
654
  - app/views/ish_manager/kaminari/_prev_page.html.erb
653
655
  - app/views/ish_manager/leads/_form.haml
654
656
  - app/views/ish_manager/leads/_form_import.haml
657
+ - app/views/ish_manager/leads/_index.haml
655
658
  - app/views/ish_manager/leads/_index_rows.haml
656
659
  - app/views/ish_manager/leads/edit.haml
657
660
  - app/views/ish_manager/leads/index.haml