From d813f41aadc8a1f049b4f1f9518a730600b390d3 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sat, 4 Aug 2018 22:06:48 -0700 Subject: [PATCH] fix video page for ugoiras --- app/views/posts/partials/show/_video.html.erb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/views/posts/partials/show/_video.html.erb b/app/views/posts/partials/show/_video.html.erb index f53c01b00..be30d03ca 100644 --- a/app/views/posts/partials/show/_video.html.erb +++ b/app/views/posts/partials/show/_video.html.erb @@ -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? %> -

<%= link_to "Save this video (right click and save)", post.tagged_file_url %>

+ <%= 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) %> + +

<%= link_to "Save this video (right click and save)", post.tagged_large_file_url %>

+ +<% 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) %> + +

<%= link_to "Save this video (right click and save)", post.tagged_file_url %>

+ +<% end %> \ No newline at end of file