From c606dfc18186d14a043ba8282ac311b9b12d583b Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 18 Dec 2019 03:44:59 -0600 Subject: [PATCH] posts: fix videos not looping. Fixup for 15d737d68. --- app/views/posts/partials/show/_video.html.erb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app/views/posts/partials/show/_video.html.erb b/app/views/posts/partials/show/_video.html.erb index 76e4b1a8d..e94017287 100644 --- a/app/views/posts/partials/show/_video.html.erb +++ b/app/views/posts/partials/show/_video.html.erb @@ -1,12 +1,7 @@ <% if post.is_ugoira? %> - - <%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :controls => "controls", :src => post.tagged_large_file_url) %> - -

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

- + <%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => true, :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, :controls => "controls", :src => post.tagged_file_url) %> - -

<%= 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 => true, :controls => "controls", :src => post.tagged_file_url) %> +

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

<% end %>