annotate bns_website/templates/videos/index.html @ 98:4de34a1446a0

Fix video page. Was only displaying 2 videos in playlist. YouTube must have changed something? In any event, it is easier to use now. Can just use an <iframe> and give it a list of videos now.
author Brian Neal <bgneal@gmail.com>
date Fri, 13 Jul 2012 21:36:53 -0500
parents 1d2473f4bcaa
children ee491a3f486d
rev   line source
bgneal@60 1 {% extends 'base.html' %}
bgneal@60 2 {% load core_tags %}
bgneal@60 3 {% block title %}Watch{% endblock %}
bgneal@60 4 {% block content %}
bgneal@60 5 {% navbar 'videos' %}
bgneal@60 6 <h1>Watch</h1>
bgneal@60 7
bgneal@60 8 {% if videos %}
bgneal@60 9 <p>
bgneal@60 10 Please enjoy this {{ videos|length }} video playlist of the bands that performed on the
bgneal@98 11 <em>Brave New Surf</em> compilation. Once you press play, you can use the playlist button
bgneal@60 12 at the bottom of the player to scroll through all the videos.
bgneal@60 13 </p>
bgneal@60 14
bgneal@98 15 <iframe id="ytplayer" type="text/html" width="853" height="480"
bgneal@98 16 src="http://www.youtube.com/embed/{{ videos|first }}?version=3&playlist={{ videos|slice:"1:"|join:"," }}"
bgneal@98 17 frameborder="0"/>
bgneal@60 18
bgneal@60 19 {% else %}
bgneal@60 20 <p>Videos of the bands are coming soon. Please check back later.</p>
bgneal@60 21 {% endif %}
bgneal@60 22 {% endblock %}