Changeset e0e2c10 in OpenWorkouts-current for ow/templates


Ignore:
Timestamp:
Jan 16, 2019, 12:57:09 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
eaef731
Parents:
ad5759b
Message:

Added attribute to store speed info for Workout objects.

Load avg and max speed from fit files into Workout objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/workout.pt

    rad5759b re0e2c10  
    8787          <tal:c tal:content="context.rounded_distance"></tal:c> km
    8888        </li>
     89        <li tal:condition="context.speed">
     90          <tal:t i18n:translate="">Speed:</tal:t>
     91          <tal:t i18n:translate="">Avg.</tal:t>
     92          <tal:c tal:content="round(context.speed['avg'], 1)"></tal:c> km/h |
     93          <tal:t i18n:translate="">Max.</tal:t>
     94          <tal:c tal:content="round(context.speed['max'], 1)"></tal:c> km/h
     95        </li>
    8996        <li tal:condition="hr">
    9097          <tal:t i18n:translate="">Heart Rate:</tal:t>
Note: See TracChangeset for help on using the changeset viewer.