-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMMM-StravaWeekInBike.njk
41 lines (39 loc) · 1.29 KB
/
MMM-StravaWeekInBike.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% if loading %}
<div class="small dimmed light">
{{ "LOADING" | translate | safe }}
<p>loading... </p>
</div>
{% else %}
<div class="wrapper">
{% if accessTokenError | length > 0 %}
<div>
Error getting token. </br> Check the logs for more information.
</div>
{% endif %}
{% if numberOfRides > 0 %}
<div>
<div class="label">
<span class="bright symbol strava-icon icon-ride"></span> #'s for the last <span class="value">{{numberOfDaysToQuery}}</span> days
</div>
<div class="value">
{{ numberOfRides}} <span class="label">rides</span>
</div>
<div class="value">
{{distance}} <span class="label">miles</span>
</div>
<div class="value">
{{elevation}} <span class="label">ft. climbed</span>
</div>
<div class="value">
{{ hours }} <span class="label">hours</span>
{{ minutes }} <span class="label">minutes ridden</span>
<div>
</div>
{% endif %}
{% if numberOfRides === 0 %}
<div>
You haven't ridden at all in the last {{numberOfDaysToQuery}} days
</div>
{% endif %}
</div>
{% endif %}