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

@@ -60,6 +60,17 @@
{% block main %}
<p>
{% if workout|previousworkout:rower.user %}
<a href="/rowers/workout/{{ workout|previousworkout:rower.user }}/workflow"
title="Jump to preceding workout"><em>Previous</em></a>&nbsp;
{% endif %}
{% if workout|nextworkout:rower.user %}
<a href="/rowers/workout/{{ workout|nextworkout:rower.user }}/workflow"
title="Jump to following workout"><em>Next</em></a>
{% endif %}
</p>
<h1>{{ workout.name }}</h1>
{% if workout.user.user != user %}
<h2>{{ workout.user.user.first_name }} {{ workout.user.user.last_name }}</h2>