Merge branch 'release/v15.6.3'
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<p>
|
<p>
|
||||||
Sharing a session makes it available to all Rowsandall users on Self-Coach and Coach plans, so they can
|
Sharing a session makes it available to all Rowsandall users on Self-Coach and Coach plans, so they can
|
||||||
use it in their own training plans. You can make the session private again at any time, but users
|
use it in their own training plans. You can make the session private again at any time, but users
|
||||||
can save your session in their own private libraries.
|
can save your session in their own private libraries. Click on the lock icon to toggle sharing/private.
|
||||||
</p>
|
</p>
|
||||||
<table width="90%" class="listtable shortpadded">
|
<table width="90%" class="listtable shortpadded">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -36,11 +36,9 @@
|
|||||||
<th align="left">Type</th>
|
<th align="left">Type</th>
|
||||||
<th align="left">Mode</th>
|
<th align="left">Mode</th>
|
||||||
<th align="left">Value</th>
|
<th align="left">Value</th>
|
||||||
<th align="left">Private/Public</th>
|
<th align="left">Private/Shared</th>
|
||||||
<th align="left">Edit</th>
|
<th align="left">Edit</th>
|
||||||
<th align="left">Copy to Calendar</th>
|
<th align="left">Copy to Calendar</th>
|
||||||
<th align="left">Share</th>
|
|
||||||
<th align="left">Make Private</th>
|
|
||||||
<th align="left">Delete</th>
|
<th align="left">Delete</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -59,9 +57,23 @@
|
|||||||
<td> {{ ps.sessionvalue }} {{ ps.sessionunit }}</td>
|
<td> {{ ps.sessionvalue }} {{ ps.sessionunit }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if ps.is_public %}
|
{% if ps.is_public %}
|
||||||
<i class="fas fa-lock-open-alt"></i>
|
{% if ps.manager == request.user %}
|
||||||
|
<a class="small"
|
||||||
|
href="/rowers/sessions/{{ ps.id }}/makeprivate/">
|
||||||
|
<i class="fas fa-lock-open fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<i class="fas fa-lock-open fa-fw"></i>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="fas fa-lock-alt"></i>
|
{% if ps.manager == request.user %}
|
||||||
|
<a class="small"
|
||||||
|
href="/rowers/sessions/{{ ps.id }}/share/">
|
||||||
|
<i class="fas fa-lock fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<i class="fas fa-lock fa-fw"></i>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -859,9 +859,18 @@ def step_to_string(step):
|
|||||||
targettype = None
|
targettype = None
|
||||||
|
|
||||||
if targettype == 'HeartRate':
|
if targettype == 'HeartRate':
|
||||||
value = step['targetValue']
|
try:
|
||||||
valuelow = step['targetValueLow']
|
value = step['targetValue']
|
||||||
valuehigh = step['targetValueHigh']
|
except KeyError:
|
||||||
|
value = 0
|
||||||
|
try:
|
||||||
|
valuelow = step['targetValueLow']
|
||||||
|
except KeyError:
|
||||||
|
valuelow = 0
|
||||||
|
try:
|
||||||
|
valuehigh = step['targetValueHigh']
|
||||||
|
except KeyError:
|
||||||
|
valuehigh = 0
|
||||||
|
|
||||||
if value < 10 and value>0:
|
if value < 10 and value>0:
|
||||||
target = 'Target: Heart Rate in zone {v}'.format(v=value)
|
target = 'Target: Heart Rate in zone {v}'.format(v=value)
|
||||||
@@ -877,9 +886,18 @@ def step_to_string(step):
|
|||||||
h = valuehigh+100
|
h = valuehigh+100
|
||||||
)
|
)
|
||||||
elif targettype == 'Power':
|
elif targettype == 'Power':
|
||||||
value = step['targetValue']
|
try:
|
||||||
valuelow = step['targetValueLow']
|
value = step['targetValue']
|
||||||
valuehigh = step['targetValueHigh']
|
except KeyError:
|
||||||
|
value = 0
|
||||||
|
try:
|
||||||
|
valuelow = step['targetValueLow']
|
||||||
|
except KeyError:
|
||||||
|
valuelow = 0
|
||||||
|
try:
|
||||||
|
valuehigh = step['targetValueHigh']
|
||||||
|
except KeyError:
|
||||||
|
valuehigh = 0
|
||||||
|
|
||||||
if value < 10 and value>0:
|
if value < 10 and value>0:
|
||||||
target = 'Target: Power in zone {v}'.format(v=value)
|
target = 'Target: Power in zone {v}'.format(v=value)
|
||||||
@@ -895,9 +913,18 @@ def step_to_string(step):
|
|||||||
h = valuehigh-1000
|
h = valuehigh-1000
|
||||||
)
|
)
|
||||||
elif targettype == 'Speed':
|
elif targettype == 'Speed':
|
||||||
value = step['targetValue']
|
try:
|
||||||
valuelow = step['targetValueLow']
|
value = step['targetValue']
|
||||||
valuehigh = step['targetValueHigh']
|
except KeyError:
|
||||||
|
value = 0
|
||||||
|
try:
|
||||||
|
valuelow = step['targetValueLow']
|
||||||
|
except KeyError:
|
||||||
|
valuelow = 0
|
||||||
|
try:
|
||||||
|
valuehigh = step['targetValueHigh']
|
||||||
|
except KeyError:
|
||||||
|
valuehigh = 0
|
||||||
|
|
||||||
if value != 0:
|
if value != 0:
|
||||||
v = value/1000.
|
v = value/1000.
|
||||||
|
|||||||
Reference in New Issue
Block a user