added breakthrough notification
This commit is contained in:
70
rowers/templates/breakthroughemail.html
Normal file
70
rowers/templates/breakthroughemail.html
Normal file
@@ -0,0 +1,70 @@
|
||||
<html>
|
||||
<body>
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
|
||||
<img src="https://rowsandall.com/static/img/logo7.png" height="50">
|
||||
<p>Dear <strong>{{ first_name }}</strong>,</p>
|
||||
|
||||
<p>
|
||||
Congratulations! Your recent workout has been analyzed
|
||||
by Rowsandall.com and it appears your fitness,
|
||||
as measured by Critical Power, has improved!
|
||||
Critical Power (CP) is the power that you can
|
||||
sustain for a given duration. For more, see this
|
||||
article in the analytics blog:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="http://analytics.rowsandall.com/2017/06/17/how-do-we-calculate-critical-power/">
|
||||
http://analytics.rowsandall.com/2017/06/17/how-do-we-calculate-critical-power/</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Link to the workout: <a href="{{ siteurl }}/rowers/workout/{{ workoutid }}">
|
||||
{{ siteurl }}/rowers/workout/{{ workoutid }}</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To add the workout to your Ranking workouts and see the updated CP plot,
|
||||
click the following link:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="{{ siteurl }}/rowers/workout/{{ workoutid }}/updatecp">
|
||||
{{ siteurl }}/rowers/workout/{{ workoutid }}/updatecp</a>
|
||||
</p>
|
||||
|
||||
{% if btvalues %}
|
||||
<p>
|
||||
These were the breakthrough values:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Time (sec)</th><th>New Power (W)</th><th>Old Power </th>
|
||||
</tr>
|
||||
{% for set in btvalues %}
|
||||
<tr>
|
||||
<th>{{ set|lookup:"delta" }}</th>
|
||||
<th>{{ set|lookup:"cpvalue" }}</th>
|
||||
<th>{{ set|lookup:"pwr" }}</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<p>
|
||||
To opt out of these email notifications, deselect the checkbox on your Profile
|
||||
page under Account Information.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Best Regards, the Rowsandall Team
|
||||
</p>
|
||||
</html>
|
||||
</body>
|
||||
Reference in New Issue
Block a user