adding previous and next to new workout pages
This commit is contained in:
@@ -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>
|
||||
{% 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>
|
||||
|
||||
Reference in New Issue
Block a user