Update emails text, show video preview
This commit is contained in:
parent
9f10170159
commit
adf4ad8c51
@ -2,8 +2,7 @@ class VideolistingMailer < ActionMailer::Base
|
|||||||
default from: "noreply@propelmarketing.com"
|
default from: "noreply@propelmarketing.com"
|
||||||
|
|
||||||
def videolisting_complete(videolisting)
|
def videolisting_complete(videolisting)
|
||||||
@to = videolisting.campaign.vpa_email
|
|
||||||
@listing = videolisting
|
@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
|
||||||
end
|
end
|
||||||
|
@ -5,7 +5,12 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>A Video listing is complete.</h1>
|
<h1>A Video listing is complete.</h1>
|
||||||
|
|
||||||
|
<p>Hi <%= @listing.campaign.vpa %>,</p>
|
||||||
<p>The video listing with video code: <%= @listing.videocode %> has been completed by Better video.</p>
|
<p>The video listing with video code: <%= @listing.videocode %> has been completed by Better video.</p>
|
||||||
<p><%= link_to "Preview Video Before setting live.", campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %></p>
|
<p><%= link_to ".", campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %></p>
|
||||||
|
<p>To get started, please visit the link above. There will you find the video preview to make sure everything looks good.</p>
|
||||||
|
<p>Once you preview the video, please press the "copy to clipboard" button to
|
||||||
|
copy the listing ID and paste that into the responsive widget.</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,5 +1,12 @@
|
|||||||
A Video listing is complete.
|
A Video listing is complete.
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
Hi <%= @listing.campaign.vpa %>,
|
||||||
|
|
||||||
The video listing with video code: <%= @listing.videocode %> has been completed by Better video.
|
The video listing with video code: <%= @listing.videocode %> has been completed by Better video.
|
||||||
|
|
||||||
<%= campaign_videolisting_url(@listing.campaign.listingcode, @listing.videocode) %>
|
<%= 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.
|
@ -1,3 +1,8 @@
|
|||||||
|
<% content_for :extra_head do %>
|
||||||
|
<script src="//player.bettervideo.com/player/video.dev.js"></script>
|
||||||
|
<script src="//player.bettervideo.com/plugins/bvPlugins.js"></script>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<section>
|
<section>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
@ -18,9 +23,31 @@
|
|||||||
<b>Copy To Clipboard...</b>
|
<b>Copy To Clipboard...</b>
|
||||||
</button>
|
</button>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Preview Image</h3>
|
<h3>Preview Video</h3>
|
||||||
|
|
||||||
|
<div class="video-js-responsive-container">
|
||||||
|
<video class="video-js vjs-blue-skin" id="bvVideo1" preload="auto" controls>
|
||||||
|
<source src="//video2.bettervideo.com/video/PRO/MP4640x360/720.<%= @videolisting.videocode %>.mp4" type="video/mp4"></source> <!-- Video URL goes here" -->
|
||||||
|
</video>
|
||||||
|
<script>
|
||||||
|
videojs('bvVideo1',{
|
||||||
|
"width": 640,
|
||||||
|
"height": 360,
|
||||||
|
"poster": '//video2.bettervideo.com/video/PRO/JPG640x360/720.<%= @videolisting.videocode %>.jpg', // Video Preview URL goes here
|
||||||
|
"plugins": {
|
||||||
|
"errors": {},
|
||||||
|
"bvSocial": {"reddit":false,"delicious":false},
|
||||||
|
"bvReporting": {
|
||||||
|
"secondaryGA":"UA-XXXXXXXX-X", /* Put your Google Analytics UID here */
|
||||||
|
"secondaryLabel":"Interactive Video"
|
||||||
|
},
|
||||||
|
"bvThemeLoader": {}
|
||||||
|
}
|
||||||
|
}, function() { /* Player Ready Callback, 'this' => reference to this player */ } );
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= image_tag(@videolisting.get_preview_url) %>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user