From adf4ad8c519568dd68de2bf635b722c9977aa761 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 6 May 2014 10:43:27 -0400 Subject: [PATCH] Update emails text, show video preview --- app/mailers/videolisting_mailer.rb | 3 +- .../videolisting_complete.html.erb | 21 ++++++++----- .../videolisting_complete.text.erb | 9 +++++- app/views/videolistings/show.html.erb | 31 +++++++++++++++++-- 4 files changed, 51 insertions(+), 13 deletions(-) diff --git a/app/mailers/videolisting_mailer.rb b/app/mailers/videolisting_mailer.rb index 2aa58c3..248f21a 100644 --- a/app/mailers/videolisting_mailer.rb +++ b/app/mailers/videolisting_mailer.rb @@ -2,8 +2,7 @@ class VideolistingMailer < ActionMailer::Base default from: "noreply@propelmarketing.com" def videolisting_complete(videolisting) - @to = videolisting.campaign.vpa_email @listing = videolisting - mail(to: @to, subject: "A Video Listing has been completed by Better Video") + mail(to: videolisting.campaign.vpa_email, subject: "A Video Listing has been completed by Better Video") end end diff --git a/app/views/videolisting_mailer/videolisting_complete.html.erb b/app/views/videolisting_mailer/videolisting_complete.html.erb index 915cd5d..333f481 100644 --- a/app/views/videolisting_mailer/videolisting_complete.html.erb +++ b/app/views/videolisting_mailer/videolisting_complete.html.erb @@ -1,11 +1,16 @@ - - - - -

A Video listing is complete.

-

The video listing with video code: <%= @listing.videocode %> has been completed by Better video.

-

<%= link_to "Preview Video Before setting live.", campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %>

- + + + + +

A Video listing is complete.

+ +

Hi <%= @listing.campaign.vpa %>,

+

The video listing with video code: <%= @listing.videocode %> has been completed by Better video.

+

<%= link_to ".", campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %>

+

To get started, please visit the link above. There will you find the video preview to make sure everything looks good.

+

Once you preview the video, please press the "copy to clipboard" button to + copy the listing ID and paste that into the responsive widget.

+ \ No newline at end of file diff --git a/app/views/videolisting_mailer/videolisting_complete.text.erb b/app/views/videolisting_mailer/videolisting_complete.text.erb index f930888..b8f332d 100644 --- a/app/views/videolisting_mailer/videolisting_complete.text.erb +++ b/app/views/videolisting_mailer/videolisting_complete.text.erb @@ -1,5 +1,12 @@ A Video listing is complete. ============================== + +Hi <%= @listing.campaign.vpa %>, + The video listing with video code: <%= @listing.videocode %> has been completed by Better video. -<%= campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %> \ No newline at end of file +<%= campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %> + +To get started, please visit the URL above. There will you find the video preview to make sure everything looks good. + +Once you preview the video, please press the "copy to clipboard" button to copy the listing ID and paste that into the responsive widget. \ No newline at end of file diff --git a/app/views/videolistings/show.html.erb b/app/views/videolistings/show.html.erb index be5017a..f195c49 100644 --- a/app/views/videolistings/show.html.erb +++ b/app/views/videolistings/show.html.erb @@ -1,3 +1,8 @@ +<% content_for :extra_head do %> + + +<% end %> +
@@ -18,9 +23,31 @@ Copy To Clipboard...
-

Preview Image

+

Preview Video

+ +
+ + +
- <%= image_tag(@videolisting.get_preview_url) %>