annotate gpp/templates/podcast/detail.html @ 467:b910cc1460c8

Add the ability to conditionally add model instances to the search index on update. This is not perfect, as some instances should be deleted from the index if they are updated such that they should not be in the index anymore. Will think about and address that later.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Jul 2011 18:12:20 +0000
parents 9175392da056
children 77d878acea5e
rev   line source
gremmie@1 1 {% extends 'podcast/base.html' %}
bgneal@310 2 {% load url from future %}
gremmie@1 3 {% block title %}Podcast: {{ podcast.title }}{% endblock %}
bgneal@402 4 {% block custom_css %}
bgneal@402 5 <link type="text/css" href="{{ STATIC_URL }}js/jplayer/skins/blue.monday/jplayer.blue.monday.css" rel="stylesheet" />
bgneal@402 6 {% endblock %}
bgneal@402 7 {% block custom_js %}
bgneal@402 8 <script type="text/javascript" src="{{ STATIC_URL }}js/jplayer/jquery.jplayer.min.js"></script>
bgneal@402 9
bgneal@402 10 <script type="text/javascript">
bgneal@402 11 //<![CDATA[
bgneal@402 12 var jplayer_media = {{ jplayer_media|safe }};
bgneal@402 13 $(document).ready(function(){
bgneal@402 14 $("#jquery_jplayer_1").jPlayer({
bgneal@402 15 ready: function () {
bgneal@402 16 $(this).jPlayer("setMedia", jplayer_media);
bgneal@402 17 },
bgneal@402 18 swfPath: "{{ STATIC_URL }}js/jplayer",
bgneal@402 19 supplied: "{{ jplayer_supplied }}"
bgneal@402 20 });
bgneal@402 21 });
bgneal@402 22 //]]>
bgneal@402 23 </script>
bgneal@402 24 {% endblock %}
gremmie@1 25 {% block podcast-content %}
bgneal@225 26 <div class="breadcrumbs">
bgneal@310 27 <a href="{% url 'podcast.views.index' %}">Podcast Index</a> &gt;&gt; {{ podcast.title }}
gremmie@1 28 </div>
gremmie@1 29 <h3>{{ podcast.pubdate|date:"F d, Y" }} &bull; {{ podcast.title }}</h3>
gremmie@1 30 <h4>{{ podcast.subtitle }}</h4>
gremmie@1 31 {{ podcast.summary|linebreaks }}
bgneal@402 32
bgneal@402 33 <p>Listen:</p>
bgneal@402 34 <div id="jquery_jplayer_1" class="jp-jplayer"></div>
bgneal@402 35 <div class="jp-audio">
bgneal@402 36 <div class="jp-type-single">
bgneal@402 37 <div id="jp_interface_1" class="jp-interface">
bgneal@402 38 <ul class="jp-controls">
bgneal@402 39 <li><a href="#" class="jp-play" tabindex="1">play</a></li>
bgneal@402 40 <li><a href="#" class="jp-pause" tabindex="1">pause</a></li>
bgneal@402 41 <li><a href="#" class="jp-stop" tabindex="1">stop</a></li>
bgneal@402 42 <li><a href="#" class="jp-mute" tabindex="1">mute</a></li>
bgneal@402 43 <li><a href="#" class="jp-unmute" tabindex="1">unmute</a></li>
bgneal@402 44 </ul>
bgneal@402 45 <div class="jp-progress">
bgneal@402 46 <div class="jp-seek-bar">
bgneal@402 47 <div class="jp-play-bar"></div>
bgneal@402 48 </div>
bgneal@402 49 </div>
bgneal@402 50 <div class="jp-volume-bar">
bgneal@402 51 <div class="jp-volume-bar-value"></div>
bgneal@402 52 </div>
bgneal@402 53 <div class="jp-current-time"></div>
bgneal@402 54 <div class="jp-duration"></div>
bgneal@402 55 </div>
bgneal@402 56 <div id="jp_playlist_1" class="jp-playlist">
bgneal@402 57 <ul>
bgneal@402 58 <li>{{ podcast.title }} - {{ podcast.subtitle }}</li>
bgneal@402 59 </ul>
bgneal@402 60 </div>
bgneal@402 61 </div>
bgneal@402 62 </div>
bgneal@402 63
bgneal@402 64 <br />
bgneal@402 65 <p> Or download:</p>
bgneal@143 66 <ul>
bgneal@143 67 <li>
bgneal@143 68 <a href="{{ podcast.enclosure_url }}">Download Now ({{ ext }})</a> &bull;
bgneal@143 69 {{ podcast.enclosure_length|filesizeformat }} &bull; {{ podcast.duration }}
bgneal@143 70 </li>
bgneal@143 71 {% if alt_ext %}
bgneal@143 72 <li>
bgneal@143 73 <a href="{{ podcast.alt_enclosure_url }}">Download Now ({{ alt_ext }})</a>
bgneal@143 74 </li>
bgneal@143 75 {% endif %}
bgneal@143 76 </ul>
gremmie@1 77 {% endblock %}