ish_manager 0.1.8.346 → 0.1.8.347

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/ish_manager/email_templates.scss +4 -1
  3. data/app/controllers/ish_manager/email_contexts_controller.rb +5 -3
  4. data/app/mailers/ish_manager/office_mailer.rb +1 -1
  5. data/app/views/202212 Mailchimp Templates/202212 1col fixed-width.html +863 -0
  6. data/app/views/202212 Mailchimp Templates/202212 1col full-width.html +906 -0
  7. data/app/views/202212 Mailchimp Templates/202212 2col fixed-width 2.html +1003 -0
  8. data/app/views/202212 Mailchimp Templates/202212 2col fixed-width.html +1082 -0
  9. data/app/views/202212 Mailchimp Templates/202212 2col full-width 2.html +1053 -0
  10. data/app/views/202212 Mailchimp Templates/202212 2col full-width.html +1147 -0
  11. data/app/views/202212 Mailchimp Templates/202212 3col fixed-width.html +1087 -0
  12. data/app/views/202212 Mailchimp Templates/202212 3col full-width.html +1136 -0
  13. data/app/views/202212 Mailchimp Templates/202212 catalog various-colors-1.html +1223 -0
  14. data/app/views/202212 Mailchimp Templates/202212 educate.html +1080 -0
  15. data/app/views/202212 Mailchimp Templates/202212 follow up.html +1001 -0
  16. data/app/views/202212 Mailchimp Templates/202212 make an announcement.html +1048 -0
  17. data/app/views/202212 Mailchimp Templates/202212 sell-a-product.html +977 -0
  18. data/app/views/202212 Mailchimp Templates/202212 tell a story.html +1168 -0
  19. data/app/views/202212 Mailchimp Templates/202212 theme art-newsletter.html +1612 -0
  20. data/app/views/202212 Mailchimp Templates/202212 theme caribou-xmas.html +856 -0
  21. data/app/views/202212 Mailchimp Templates/202212 theme colorbox.html +1027 -0
  22. data/app/views/202212 Mailchimp Templates/202212 theme competition-invitation.html +918 -0
  23. data/app/views/202212 Mailchimp Templates/202212 theme event-veerle.html +1132 -0
  24. data/app/views/202212 Mailchimp Templates/202212 theme fall-colors.html +1407 -0
  25. data/app/views/202212 Mailchimp Templates/202212 theme gift-giving.html +787 -0
  26. data/app/views/202212 Mailchimp Templates/202212 theme giftgiving-snowmen.html +731 -0
  27. data/app/views/202212 Mailchimp Templates/202212 theme heart-of-flowers.html +795 -0
  28. data/app/views/202212 Mailchimp Templates/202212 theme hero-card.html +915 -0
  29. data/app/views/202212 Mailchimp Templates/202212 theme hero-image.html +1148 -0
  30. data/app/views/202212 Mailchimp Templates/202212 theme monthly-contest.html +967 -0
  31. data/app/views/202212 Mailchimp Templates/202212 theme multiple-event.html +1189 -0
  32. data/app/views/202212 Mailchimp Templates/202212 theme postcard.html +914 -0
  33. data/app/views/202212 Mailchimp Templates/202212 theme snowy-fields.html +733 -0
  34. data/app/views/202212 Mailchimp Templates/202212 theme soft.html +849 -0
  35. data/app/views/202212 Mailchimp Templates/202212 theme sophisticated.html +1079 -0
  36. data/app/views/202212 Mailchimp Templates/202212 theme subtle.html +1218 -0
  37. data/app/views/202212 Mailchimp Templates/202212 theme ticket.html +1015 -0
  38. data/app/views/202212 Mailchimp Templates/202212 theme whale.html +888 -0
  39. data/app/views/ish_manager/application/_main_footer.haml +5 -3
  40. data/app/views/ish_manager/email_contexts/_form.haml +3 -1
  41. data/app/views/ish_manager/email_contexts/show.haml +3 -3
  42. data/app/views/layouts/ish_manager/application.haml +10 -6
  43. data/lib/tasks/office_tasks.rake +27 -0
  44. metadata +37 -2
@@ -11,9 +11,11 @@
11
11
  %li <b>Role name:</b> #{@current_profile.role_name}
12
12
 
13
13
  .col-sm-4
14
- \~__^
15
- = @version
16
- -# <pre>#{@changelog}</pre>
14
+ %ul
15
+ %li \~__^
16
+ %li= @version
17
+ %li= Time.now.to_s
18
+ -# <pre>#{@changelog}</pre>
17
19
 
18
20
  .col-sm-2
19
21
  = button_to 'Logout', main_app.destroy_user_session_path, :method => :delete
@@ -48,4 +48,6 @@
48
48
  .left
49
49
  = f.submit 'Preview'
50
50
  .right
51
- -# = f.submit 'Schedule/Send'
51
+ = f.label :send_at
52
+ = f.text_field :send_at
53
+ = f.submit 'Schedule'
@@ -4,12 +4,13 @@
4
4
  %ul
5
5
  %li <b>Type:</b> #{@email_ctx.type}
6
6
  %li <b>Title:</b> #{@email_ctx.title}
7
- %li <b>Template:</b> #{@email_ctx.email_template.slug}
8
7
  %li <b>From:</b> #{@email_ctx.from_email}
9
8
  %li <b>Subject:</b> #{@email_ctx.subject}
10
9
  - if @email_ctx.type == Ish::EmailContext::TYPE_SINGLE
11
10
  %li <b>To:</b> #{@email_ctx.to_email}
12
11
  %li <b>Template:</b> #{@email_ctx.email_template.slug} <b>Type:</b> #{@email_ctx.email_template.type}
12
+ %li <b>Send at:</b> #{@email_ctx.send_at&.strftime('%Y-%m-%d %l:%M%P')}
13
+ %li <b>Sent at:</b> #{@email_ctx.sent_at&.strftime('%Y-%m-%d %l:%M%P')}
13
14
 
14
15
  -#
15
16
  -# Yes sent
@@ -23,8 +24,6 @@
23
24
  = link_to '[view]', campaign_lead_path( c_lead )
24
25
  ,
25
26
 
26
- %li <b>Sent at:</b> #{@email_ctx.sent_at.strftime('%Y-%m-%d %l:%M%P')}
27
-
28
27
  - else # Draft
29
28
  - if @email_ctx.type == Ish::EmailContext::TYPE_CAMPAIGN
30
29
  %li <b>Leads (#{@email_ctx.leads.length}):</b> #{@email_ctx.leads.map { |p| p&.email }.join(", ") }
@@ -35,6 +34,7 @@
35
34
 
36
35
  - if @email_ctx.sent_at
37
36
  = raw @email_ctx.rendered_str
37
+ = @email_ctx.tmpl
38
38
 
39
39
  - else
40
40
  %iframe{ src: email_context_iframe_path(@email_ctx), width: '100%', height: '100%' }
@@ -38,14 +38,18 @@
38
38
  .col-sm-12
39
39
  - if notice
40
40
  - if notice.class == Array
41
- %ul
41
+ %ul.notice
42
42
  - notice.map do |n|
43
- %li
44
- - n.map do |k,v|
45
- <b>#{k} :</b> #{v}
46
- %p.notice= notice
43
+ %li= n
44
+ - else
45
+ %p.notice= notice
47
46
  - if alert
48
- %p.alert= alert
47
+ - if alert.class == Array
48
+ %ul.alert
49
+ - alert.map do |n|
50
+ %li= n
51
+ - else
52
+ %p.alert= alert
49
53
  = yield
50
54
  = render 'ish_manager/application/main_footer'
51
55
  = render 'analytics' if Rails.env.production?
@@ -0,0 +1,27 @@
1
+
2
+ def puts! a, b=''
3
+ puts "+++ +++ #{b}"
4
+ puts a.inspect
5
+ end
6
+
7
+ namespace :office do
8
+
9
+ desc "send emails"
10
+ task :email_worker => :environment do
11
+ while true do
12
+
13
+ ctxs = ::Ish::EmailContext.current.unsent
14
+ puts! ctxs.count, 'ctxs'
15
+ ctxs.map do |ctx|
16
+ IshManager::OfficeMailer.send_context_email( ctx[:id].to_s ).deliver_later
17
+ print '.'
18
+ end
19
+
20
+ # sleep 1.minute
21
+ sleep 10.seconds
22
+ print '^'
23
+
24
+ end
25
+ end
26
+
27
+ 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.346
4
+ version: 0.1.8.347
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-22 00:00:00.000000000 Z
11
+ date: 2023-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -308,6 +308,40 @@ files:
308
308
  - app/mailers/ish_manager/meeting_mailer.rb
309
309
  - app/mailers/ish_manager/office_mailer.rb
310
310
  - app/models/ish_manager/ability.rb
311
+ - app/views/202212 Mailchimp Templates/202212 1col fixed-width.html
312
+ - app/views/202212 Mailchimp Templates/202212 1col full-width.html
313
+ - app/views/202212 Mailchimp Templates/202212 2col fixed-width 2.html
314
+ - app/views/202212 Mailchimp Templates/202212 2col fixed-width.html
315
+ - app/views/202212 Mailchimp Templates/202212 2col full-width 2.html
316
+ - app/views/202212 Mailchimp Templates/202212 2col full-width.html
317
+ - app/views/202212 Mailchimp Templates/202212 3col fixed-width.html
318
+ - app/views/202212 Mailchimp Templates/202212 3col full-width.html
319
+ - app/views/202212 Mailchimp Templates/202212 catalog various-colors-1.html
320
+ - app/views/202212 Mailchimp Templates/202212 educate.html
321
+ - app/views/202212 Mailchimp Templates/202212 follow up.html
322
+ - app/views/202212 Mailchimp Templates/202212 make an announcement.html
323
+ - app/views/202212 Mailchimp Templates/202212 sell-a-product.html
324
+ - app/views/202212 Mailchimp Templates/202212 tell a story.html
325
+ - app/views/202212 Mailchimp Templates/202212 theme art-newsletter.html
326
+ - app/views/202212 Mailchimp Templates/202212 theme caribou-xmas.html
327
+ - app/views/202212 Mailchimp Templates/202212 theme colorbox.html
328
+ - app/views/202212 Mailchimp Templates/202212 theme competition-invitation.html
329
+ - app/views/202212 Mailchimp Templates/202212 theme event-veerle.html
330
+ - app/views/202212 Mailchimp Templates/202212 theme fall-colors.html
331
+ - app/views/202212 Mailchimp Templates/202212 theme gift-giving.html
332
+ - app/views/202212 Mailchimp Templates/202212 theme giftgiving-snowmen.html
333
+ - app/views/202212 Mailchimp Templates/202212 theme heart-of-flowers.html
334
+ - app/views/202212 Mailchimp Templates/202212 theme hero-card.html
335
+ - app/views/202212 Mailchimp Templates/202212 theme hero-image.html
336
+ - app/views/202212 Mailchimp Templates/202212 theme monthly-contest.html
337
+ - app/views/202212 Mailchimp Templates/202212 theme multiple-event.html
338
+ - app/views/202212 Mailchimp Templates/202212 theme postcard.html
339
+ - app/views/202212 Mailchimp Templates/202212 theme snowy-fields.html
340
+ - app/views/202212 Mailchimp Templates/202212 theme soft.html
341
+ - app/views/202212 Mailchimp Templates/202212 theme sophisticated.html
342
+ - app/views/202212 Mailchimp Templates/202212 theme subtle.html
343
+ - app/views/202212 Mailchimp Templates/202212 theme ticket.html
344
+ - app/views/202212 Mailchimp Templates/202212 theme whale.html
311
345
  - app/views/ish_manager/application/_analytics.html
312
346
  - app/views/ish_manager/application/_debug.haml
313
347
  - app/views/ish_manager/application/_form_errors.haml
@@ -465,6 +499,7 @@ files:
465
499
  - lib/systemd/system/watch_stocks.service
466
500
  - lib/tasks/done/migrate.rake
467
501
  - lib/tasks/ish_manager_tasks.rake
502
+ - lib/tasks/office_tasks.rake
468
503
  homepage: http://wasya.co
469
504
  licenses:
470
505
  - MIT