fix video page for ugoiras

This commit is contained in:
r888888888
2018-08-04 22:06:48 -07:00
parent 88c2fa69f3
commit d813f41aad

View File

@@ -1,3 +1,12 @@
<%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => !post.has_tag?("video_with_sound"), :controls => "controls", :src => post.tagged_file_url) %>
<% if post.is_ugoira? %>
<p><%= link_to "Save this video (right click and save)", post.tagged_file_url %></p>
<%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => !post.has_tag?("video_with_sound"), :controls => "controls", :src => post.tagged_large_file_url) %>
<p><%= link_to "Save this video (right click and save)", post.tagged_large_file_url %></p>
<% else %>
<%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => !post.has_tag?("video_with_sound"), :controls => "controls", :src => post.tagged_file_url) %>
<p><%= link_to "Save this video (right click and save)", post.tagged_file_url %></p>
<% end %>