{% extends "base_list.html" %}
{% load static %}

{% block title %}Workout Routines{% 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">Routine</th>
                        <th scope="col">Scrobbles</th>
                        <th scope="col">Last Workout</th>
                    </tr>
                </thead>
                <tbody>
                    {% for routine in object_list %}
                    <tr>
                        <td><a href="{{routine.get_absolute_url}}">{{routine.title}}</a></td>
                        <td>{{routine.scrobble_count}}</td>
                        <td>{{routine.last_scrobble|date}}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}
