Private
Public Access
1
0

adding previous and next to new workout pages

This commit is contained in:
Sander Roosendaal
2018-11-27 14:03:04 +01:00
parent 9f82c270e9
commit 2f17ca12ec
6 changed files with 56 additions and 1 deletions

View File

@@ -19,6 +19,17 @@
{{ the_script |safe }}
<p>
{% if workout|previousworkout:rower.user %}
<a href="/rowers/workout/{{ workout|previousworkout:rower.user }}/flexchart"
title="Jump to preceding workout"><em>Previous</em></a>&nbsp;
{% endif %}
{% if workout|nextworkout:rower.user %}
<a href="/rowers/workout/{{ workout|nextworkout:rower.user }}/flexchart"
title="Jump to following workout"><em>Next</em></a>
{% endif %}
</p>
<h1>Flexible Chart</h1>