Mercurial > public > bravenewsurf
view bns_website/templates/videos/index.html @ 79:548b9e61bd64
Updated bands.json to include "asset_prefix" tags for all the bands.
Incorporated all the small images from Ferenc into the bands slideshow.
Went through and crushed all the large images to fit within 800x600.
Make sure to "manage.py loaddata bands.json" after picking this up.
author | Chris Ridgway <ckridgway@gmail.com> |
---|---|
date | Fri, 25 Nov 2011 16:54:59 -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 %}