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

{% 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 %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.