added lab
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid_6 prefix_6 alpha">
|
||||
<div class="grid_2 suffix_4 alpha">
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
{% if user|is_promember %}
|
||||
<a class="button blue small" href="/rowers/ote-ranking">OTE Critical Power</a>
|
||||
@@ -138,6 +138,19 @@
|
||||
Analyse power vs piece duration to make predictions, for erg pieces.
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid_2 suffix_2 alpha">
|
||||
<p>
|
||||
{% if user|is_planmember %}
|
||||
<a class="button blue small" href="/rowers/fitness-progress">Lab</a>
|
||||
{% else %}
|
||||
<a class="button blue small" href="/rowers/promembership">Lab</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
Undisclosed new functionality. This is still experimental and
|
||||
may not make sense.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -131,6 +131,11 @@ def is_manager(user):
|
||||
r = Rower.objects.get(user=user)
|
||||
return r.rowerplan == 'coach'
|
||||
|
||||
@register.filter
|
||||
def is_planmember(user):
|
||||
r = Rower.objects.get(user=user)
|
||||
return r.rowerplan == 'plan' or r.rowerplan == 'coach'
|
||||
|
||||
@register.filter
|
||||
def user_teams(user):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user