website/www/podjango/templates/podjango/cast/cast_list.html
Ben Sturmfels cf359b6a64
Rename cast to "The Corresponding Source", move to URL prefix "/cast/"
Also improved detail view rendering where unclosed <ul> tags in the body
content HTML from the database were affecting the display of footer info.
2023-10-13 13:08:16 +11:00

56 lines
2.1 KiB
HTML

<!-- FIXME: SFLC specific content -->
<!-- Copyright (C) 2008 Bradley M. Kuhn <bkuhn@ebb.org> -->
<!-- Permission is granted to copy, modify, redistribute, propagate, -->
<!-- and/or convey this template in any form. -->
{% extends "podjango/base_podcast.html" %}
{% block subtitle %}The Corresponding Source - {% endblock %}
{% block content %}
<h1>{% include 'podjango/feed_links.inc.html' %} The Corresponding Source</h1>
{% if tags %}
<p>Displaying casts
tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% ifequal forloop.revcounter 2 %} or {% endifequal %}{% endfor %}
</p>
{% endif %}
{% for object in object_list %}
<div class="pa2 mb2" style="background: #F0FFB8">
<h3>
<a class="feedlink" href="{{ object.ogg_path }}">{% include 'podjango/audio_ogg_button.inc.html' %}</a>
<a class="feedlink" href="{{ object.mp3_path }}">{% include 'podjango/audio_mp3_button.inc.html' %}</a>
<a href="{{ object.get_absolute_url }}">{{ object.title|safe }}</a></h3>
<p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
<h4>Summary</h4>
{{ object.summary|safe }}
<p>
This show was released on {{ object.pub_date|date:"l j F Y" }}; its
running time is {{ object.duration}}.</p>
<h4>Show Notes</h4>
<div>
{{ object.body|safe }}
</div>
{% if object.tags.all %}<p class="cast-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
</div>
{% endfor %}
<p>
{% if has_next %}<a class="next_page_button" href="?page={{ next }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">Next page (older) &raquo;</a>{% endif %}
{% if has_previous %}<a href="?page={{ previous }}{% if query_string %}&amp;{{ query_string|escape }}{% endif %}">&laquo; Previous page (newer)</a>{% endif %}
</p>
<div class="clear"></div>
{% if date_list %}
<h3>Index by date</h3>
<ul>
{% for year in date_list %}<li><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
</ul>
{% endif %}
{% endblock %}