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

@@ -5,6 +5,17 @@
{% block title %}Workout Statistics{% endblock %}
{% block main %}
<p>
{% if workout|previousworkout:rower.user %}
<a href="/rowers/workout/{{ workout|previousworkout:rower.user }}/stats"
title="Jump to preceding workout"><em>Previous</em></a>&nbsp;
{% endif %}
{% if workout|nextworkout:rower.user %}
<a href="/rowers/workout/{{ workout|nextworkout:rower.user }}/stats"
title="Jump to following workout"><em>Next</em></a>
{% endif %}
</p>
<h1>Workout Statistics for {{ workout.name }}</h1>
<ul class="main-content">
<li class="grid_4">