From 15d737d68b2ff46c02cb3f9af26885b51fdc309d Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 14 Dec 2019 16:53:12 -0600 Subject: [PATCH] posts: enable looping on video_with_sound posts. Looping was disabled on video_with_sound posts as per https://danbooru.donmai.us/forum_topics/12036#forum_post_107823. But the fact that video_with_sound posts didn't loop proved to be confusing to users and undesirable in many cases. --- app/views/posts/partials/show/_video.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/posts/partials/show/_video.html.erb b/app/views/posts/partials/show/_video.html.erb index be30d03ca..76e4b1a8d 100644 --- a/app/views/posts/partials/show/_video.html.erb +++ b/app/views/posts/partials/show/_video.html.erb @@ -1,12 +1,12 @@ <% if post.is_ugoira? %> - <%= 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) %> + <%= 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 %>

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

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