Source

django-fitlog / fitlog / templates / fitlog / tags / list_logs.html

Full commit
{% load pagination_tags %}

{% autopaginate fit_logs %}
    <table border='1' width='90%'>
        <thead><tr><th>Member</th><th>Date</th><th>Title</th><th>Duration (HH:MM:SS)</th>
        <th>Total Exercises</th><th>Total Sets</th><th>Total Reps</th>
        <th>Training Volume</th><th>Cardio (HH:MM:SS)</th><th>Cardio Miles</th><th>Comments</th><th>&nbsp;</th></tr></thead>
        <tbody>
    {% for log in fit_logs %}
        <tr><td>{{log.member}}</td><td>{{log.log_date|default_if_none:"n/a"}}</td><td>{{log.title|default_if_none:"-"}}</td><td>{{log.total_time|default_if_none:"-"}}</td>
        <td>{{log.total_exercises|default_if_none:"-"}}</td><td>{{log.total_sets|default_if_none:"-"}}</td><td>{{log.total_reps|default_if_none:"-"}}</td>
        <td>{{log.training_volume|default_if_none:"-"}}</td><td>{{log.cardio_min|default_if_none:"-"}}</td><td>{{log.cardio_distance|default_if_none:"-"}}</td>
        <td>{{log.comments|linebreaksbr}}</td><td>[<a href='{% url 'view_fitlog' log.id%}'>View</a>]</td></tr>
    {% endfor %}
        </tbody>
    </table>
{% paginate %}