# HG changeset patch # User Brian Neal # Date 1321735168 21600 # Node ID 1d2473f4bcaa8dde8e24c69632e05415250167ff # Parent a0d3bc630ebd3bf37f0bb2541cd9cb6f647c444e Fix bug in template that prevented the embedded video player from playing the entire playlist. diff -r a0d3bc630ebd -r 1d2473f4bcaa bns_website/templates/videos/index.html --- a/bns_website/templates/videos/index.html Sat Nov 19 14:19:00 2011 -0600 +++ b/bns_website/templates/videos/index.html Sat Nov 19 14:39:28 2011 -0600 @@ -23,7 +23,7 @@ function onYouTubePlayerAPIReady() { player = new YT.Player('player', { videoId: '{{ videos|first }}', - {% if playlist %} + {% if videos|length > 1 %} playerVars: { playlist: [ {% for video in videos|slice:"1:" %} {% if not forloop.first %},{% endif %}'{{ video }}'