Mercurial > public > bravenewsurf
view 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 |
line wrap: on
line source
{% extends 'base.html' %} {% load core_tags %} {% block title %}Watch{% endblock %} {% block content %} {% navbar 'videos' %} <h1>Watch</h1> {% if videos %} <p> Please enjoy this {{ videos|length }} video playlist of the bands that performed on the <em>Brave New Surf</em> compilation. Once you press play, you can use the playlist button at the bottom of the player to scroll through all the videos. </p> <iframe id="ytplayer" type="text/html" width="853" height="480" src="http://www.youtube.com/embed/{{ videos|first }}?version=3&playlist={{ videos|slice:"1:"|join:"," }}" frameborder="0"/> {% else %} <p>Videos of the bands are coming soon. Please check back later.</p> {% endif %} {% endblock %}