adding some details about showing commutes to user control
This commit is contained in:
@@ -34,6 +34,11 @@
|
||||
</h1>
|
||||
{% endif %}
|
||||
|
||||
{% if nr_commutes %}
|
||||
<p>
|
||||
<a href="?show_commutes=true">Show {{ nr_commutes }} commutes</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<ul class="main-content">
|
||||
<li class="grid_4">
|
||||
@@ -104,7 +109,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% for workout in workouts %}
|
||||
{% if not workout.is_commute %}
|
||||
{% if not workout.is_commute or not user.rower.small_commutes %}
|
||||
<li class="grid_4 divlines">
|
||||
{% if request.GET.selectworkouts %}
|
||||
<input type="checkbox" id="workoutid" value={{ workout.id|encode }} name="workoutid" />
|
||||
@@ -202,7 +207,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{% elif user.rower.show_commutes %}
|
||||
{% elif show_commutes and user.rower.small_commutes %}
|
||||
<li class="grid_4 divlines">
|
||||
<div class="workoutcontainer">
|
||||
<div class="workoutelement">
|
||||
|
||||
Reference in New Issue
Block a user