From 8bea50996264d499d3dd9222333f004b010a7e18 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 3 Sep 2015 20:07:45 -0400 Subject: [PATCH] Don't loop videos with sound --- app/views/posts/partials/show/_video.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_video.html.erb b/app/views/posts/partials/show/_video.html.erb index 30bf71fc9..ea7e55872 100644 --- a/app/views/posts/partials/show/_video.html.erb +++ b/app/views/posts/partials/show/_video.html.erb @@ -1,3 +1,3 @@ -<%= content_tag(:video, nil, :id => "image", :width => post.image_width, :height => post.image_height, :autoplay => true, :loop => true, :controls => "controls", :src => post.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.file_url) %>

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