{% extends "base_list.html" %}

{% block title %}Podcasts{% endblock %}
{% block lists %}
<div class="row">
    <div class="col-md">
        <div class="table-responsive">
            <table class="table table-striped table-sm">
                <thead>
                    <tr>
                        <th scope="col">Episode</th>
                        <th scope="col">Podcast</th>
                        <th scope="col">Scrobbles</th>
                    </tr>
                </thead>
                <tbody>
                    {% for obj in object_list.all %}
                        {{obj.episodes}}
                    {% for episode in obj.podcastepisode_set.all %}
                    <tr>
                        <td><a href="{{episode.get_absolute_url}}">{{episode}}</a></td>
                        <td><a href="{{obj.get_absolute_url}}">{{obj}}</a></td>
                        <td>{{episode.scrobble_set.count}}</td>
                    </tr>
                    {% endfor %}
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}
