Mercurial > public > bravenewsurf
changeset 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 | 93e9e7b3d2ae |
files | bns_website/templates/videos/index.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 }}'