ensl.org/app/views/movies/show.html.erb

34 lines
856 B
Text

<div class="box">
<h2>
<%= namelink @movie %>
</h2>
<%= render :partial => "movie", :object => @movie %>
<% if @movie.preview %>
<div class="nbox wide center">
<%= javascript_include_tag 'flowplayer' %>
<script>
flowplayer("player", "/flash/flowplayer-3.1.3.swf",
{
clip:
{
autoPlay: false,
autoBuffering: false
}
});
</script>
<a
href="<%= @movie.preview.url %>"
style="display:block;width:520px;height:330px"
id="player" class="centered">
</a>
<p>
This is a low quality version. Please download better version from above. <br />
We recommend <%= link_to "VLC Player", "http://www.videolan.org/vlc/" %> for movie playback.
</p>
</div>
<% end %>
</div>
<%= add_comments @movie.file %>