49 lines
988 B
HTML
49 lines
988 B
HTML
{% extends "base.html" %}
|
|
{% load staticfiles %}
|
|
{% load rowerfilters %}
|
|
|
|
{% block title %}Workouts{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>Available on Strava</h1>
|
|
{% if data %}
|
|
<table width="70%" class="listtable">
|
|
<thead>
|
|
<tr>
|
|
<th> Import </th>
|
|
<th> Duration </th>
|
|
<th> Type</th>
|
|
<th> Date</th>
|
|
<th> Distance </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for workout in data %}
|
|
<tr>
|
|
{% for key,value in workout.items %}
|
|
{% if key == "start_date" %}
|
|
<td>{{ value }}</td>
|
|
{% endif %}
|
|
{% if key == "type" %}
|
|
<td>{{ value }}</td>
|
|
{% endif %}
|
|
{% if key == "distance" %}
|
|
<td>{{ value }}m</td>
|
|
{% endif %}
|
|
{% if key == "elapsed_time" %}
|
|
<td>{{ value }}</td>
|
|
{% endif %}
|
|
{% if key == "id" %}
|
|
<td><a href="/rowers/workout/stravaimport/{{ value }}/">Import</a></td>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p> No workouts found </p>
|
|
{% endif %}
|
|
{% endblock %}
|