ish_manager 0.1.8.345 → 0.1.8.347

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) 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/controllers/ish_manager/email_templates_controller.rb +2 -2
  5. data/app/mailers/ish_manager/office_mailer.rb +8 -3
  6. data/app/views/202212 Mailchimp Templates/202212 1col fixed-width.html +863 -0
  7. data/app/views/202212 Mailchimp Templates/202212 1col full-width.html +906 -0
  8. data/app/views/202212 Mailchimp Templates/202212 2col fixed-width 2.html +1003 -0
  9. data/app/views/202212 Mailchimp Templates/202212 2col fixed-width.html +1082 -0
  10. data/app/views/202212 Mailchimp Templates/202212 2col full-width 2.html +1053 -0
  11. data/app/views/202212 Mailchimp Templates/202212 2col full-width.html +1147 -0
  12. data/app/views/202212 Mailchimp Templates/202212 3col fixed-width.html +1087 -0
  13. data/app/views/202212 Mailchimp Templates/202212 3col full-width.html +1136 -0
  14. data/app/views/202212 Mailchimp Templates/202212 catalog various-colors-1.html +1223 -0
  15. data/app/views/202212 Mailchimp Templates/202212 educate.html +1080 -0
  16. data/app/views/202212 Mailchimp Templates/202212 follow up.html +1001 -0
  17. data/app/views/202212 Mailchimp Templates/202212 make an announcement.html +1048 -0
  18. data/app/views/202212 Mailchimp Templates/202212 sell-a-product.html +977 -0
  19. data/app/views/202212 Mailchimp Templates/202212 tell a story.html +1168 -0
  20. data/app/views/202212 Mailchimp Templates/202212 theme art-newsletter.html +1612 -0
  21. data/app/views/202212 Mailchimp Templates/202212 theme caribou-xmas.html +856 -0
  22. data/app/views/202212 Mailchimp Templates/202212 theme colorbox.html +1027 -0
  23. data/app/views/202212 Mailchimp Templates/202212 theme competition-invitation.html +918 -0
  24. data/app/views/202212 Mailchimp Templates/202212 theme event-veerle.html +1132 -0
  25. data/app/views/202212 Mailchimp Templates/202212 theme fall-colors.html +1407 -0
  26. data/app/views/202212 Mailchimp Templates/202212 theme gift-giving.html +787 -0
  27. data/app/views/202212 Mailchimp Templates/202212 theme giftgiving-snowmen.html +731 -0
  28. data/app/views/202212 Mailchimp Templates/202212 theme heart-of-flowers.html +795 -0
  29. data/app/views/202212 Mailchimp Templates/202212 theme hero-card.html +915 -0
  30. data/app/views/202212 Mailchimp Templates/202212 theme hero-image.html +1148 -0
  31. data/app/views/202212 Mailchimp Templates/202212 theme monthly-contest.html +967 -0
  32. data/app/views/202212 Mailchimp Templates/202212 theme multiple-event.html +1189 -0
  33. data/app/views/202212 Mailchimp Templates/202212 theme postcard.html +914 -0
  34. data/app/views/202212 Mailchimp Templates/202212 theme snowy-fields.html +733 -0
  35. data/app/views/202212 Mailchimp Templates/202212 theme soft.html +849 -0
  36. data/app/views/202212 Mailchimp Templates/202212 theme sophisticated.html +1079 -0
  37. data/app/views/202212 Mailchimp Templates/202212 theme subtle.html +1218 -0
  38. data/app/views/202212 Mailchimp Templates/202212 theme ticket.html +1015 -0
  39. data/app/views/202212 Mailchimp Templates/202212 theme whale.html +888 -0
  40. data/app/views/ish_manager/application/_main_footer.haml +5 -3
  41. data/app/views/ish_manager/email_contexts/_form.haml +3 -1
  42. data/app/views/ish_manager/email_contexts/show.haml +3 -3
  43. data/app/views/ish_manager/email_templates/_m20221222merryxmas.html.erb +764 -0
  44. data/app/views/layouts/ish_manager/application.haml +10 -6
  45. data/lib/tasks/office_tasks.rake +27 -0
  46. metadata +38 -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%' }