annotate bns_website/templates/base.html @ 60:a0d3bc630ebd

For issue #8, create a videos application to randomize videos in the playlist. This commit now adds a dependency to the Google Python GData library. The admin enters a playlist URL in the admin. Then the admin uses an admin action to synchronize the playlist with YouTube. This reads the playlist title and retrieves the video list from YouTube. The view function reads all the playlist objects to get the complete list of videos, then shuffles them up. The template generates Javascript to create a YouTube player with the shuffled list. A fixture is included for convenience and for the tests. I also committed a test tool I wrote to prove out this idea in case it is useful for future enhancements or experimentation.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 14:19:00 -0600
parents a4e0b03e5c00
children b0f4ea06c698
rev   line source
bgneal@3 1 <!DOCTYPE html>
bgneal@12 2 <html lang="en"
bgneal@12 3 xmlns="http://www.w3.org/1999/xhtml"
bgneal@12 4 xmlns:og="http://ogp.me/ns#"
bgneal@12 5 xmlns:fb="https://www.facebook.com/2008/fbml">
bgneal@3 6 <head>
bgneal@3 7 <title>Brave New Surf | {% block title %}{% endblock %}</title>
bgneal@3 8 <meta charset="utf-8" />
bgneal@3 9 {% block custom_meta %}{% endblock %}
bgneal@49 10 <link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" />
bgneal@49 11 <link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css" />
bgneal@49 12 <link rel="stylesheet" href="{{ STATIC_URL }}css/base.css" />
bgneal@3 13 {% block custom_css %}{% endblock %}
bgneal@3 14 {% block custom_js %}{% endblock %}
bgneal@3 15 </head>
bgneal@3 16 <body>{% block begin_body %}{% endblock %}
bgneal@3 17
bgneal@3 18 <div class="container">
bgneal@3 19 {% block content %}{% endblock %}
bgneal@3 20 </div>
bgneal@3 21
bgneal@3 22 <footer class="footer">
bgneal@3 23 <div class="container">
bgneal@3 24 <p class="pull-right"><a href="#">Back to top</a></p>
bgneal@49 25 <p>
bgneal@49 26 Brave New Surf © 2011 <a href="http://www.doublecrownrecords.com/">Double Crown Records</a> - Contact us: <a href="mailto:records@dblcrown.com">records@dblcrown.com</a>
bgneal@49 27 </p>
bgneal@3 28 <p>Other footer type stuff goes down here.</p>
bgneal@5 29 <p><small>FENDER, JAZZMASTER and the distinctive headstock design commonly found on FENDER guitars are registered trademarks of <a href="http://www.fender.com">Fender Musical Instruments Corporation</a> and used herein with express written permission. All rights reserved.</small></p>
bgneal@3 30 </div>
bgneal@3 31 </footer>
bgneal@3 32
bgneal@3 33 {% block end_body %}{% endblock %}
bgneal@3 34 </body>
bgneal@3 35 </html>