diff bns_website/templates/videos/index.html @ 61:1d2473f4bcaa

Fix bug in template that prevented the embedded video player from playing the entire playlist.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 14:39:28 -0600
parents a0d3bc630ebd
children 4de34a1446a0
line wrap: on
line diff
--- 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 }}'