- Timestamp:
- Jan 7, 2019, 12:45:28 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- e3d7b13
- Parents:
- fe6089a
- Location:
- ow
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/models/workout.py
rfe6089a r64e8299 113 113 114 114 @property 115 def _duration(self): 116 return ':'.join( 117 [self.duration_hours, self.duration_minutes, self.duration_seconds] 118 ) 119 120 @property 115 121 def rounded_distance(self): 116 122 """ -
ow/templates/dashboard.pt
rfe6089a r64e8299 41 41 </li> 42 42 <li> 43 <tal:c tal:content="workout.duration"></tal:c> 43 <!--! use the properly formatted duration instead of the timedelta object --> 44 <tal:c tal:content="workout._duration"></tal:c> 44 45 </li> 45 46 <li tal:condition="workout.distance"> -
ow/templates/workout.pt
rfe6089a r64e8299 89 89 <li> 90 90 <tal:t i18n:translate="">Duration:</tal:t> 91 <tal:c tal:content="context.duration"></tal:c> 91 <!--! use the properly formatted duration instead of the timedelta object --> 92 <tal:c tal:content="context._duration"></tal:c> 92 93 </li> 93 94 <li tal:condition="context.distance">
Note: See TracChangeset
for help on using the changeset viewer.