Mercurial > public > bravenewsurf
view bns_website/templates/videos/index.html @ 75:b4c5b04c4209
Fix some validation problems (extra </div>, "px" in image size & width). Made the headlines bigger.
Ferenc didn't want the track listing centered over the 2 columns.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 23 Nov 2011 21:14:49 -0600 |
parents | 1d2473f4bcaa |
children | 4de34a1446a0 |
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. You can use the button that looks like a widescreen TV at the bottom of the player to scroll through all the videos. </p> <div id="player"></div> <script> var tag = document.createElement('script'); tag.src = "http://www.youtube.com/player_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var player; function onYouTubePlayerAPIReady() { player = new YT.Player('player', { videoId: '{{ videos|first }}', {% if videos|length > 1 %} playerVars: { playlist: [ {% for video in videos|slice:"1:" %} {% if not forloop.first %},{% endif %}'{{ video }}' {% endfor %} ]}, {% endif %} width: '853', height: '480' }); } </script> {% else %} <p>Videos of the bands are coming soon. Please check back later.</p> {% endif %} {% endblock %}