Client - [PR84/93] display elevation on workouts table

This commit is contained in:
Sam 2021-11-03 20:02:57 +01:00
parent 121d803f73
commit c25f30fb2f

View File

@ -34,6 +34,8 @@
<th>{{ capitalize($t('workouts.DURATION')) }}</th> <th>{{ capitalize($t('workouts.DURATION')) }}</th>
<th>{{ capitalize($t('workouts.AVE_SPEED')) }}</th> <th>{{ capitalize($t('workouts.AVE_SPEED')) }}</th>
<th>{{ capitalize($t('workouts.MAX_SPEED')) }}</th> <th>{{ capitalize($t('workouts.MAX_SPEED')) }}</th>
<th>{{ capitalize($t('workouts.ASCENT')) }}</th>
<th>{{ capitalize($t('workouts.DESCENT')) }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -112,6 +114,18 @@
</span> </span>
{{ workout.max_speed }} km/h {{ workout.max_speed }} km/h
</td> </td>
<td class="text-right">
<span class="cell-heading">
{{ $t('workouts.ASCENT') }}
</span>
<span v-if="workout.with_gpx">{{ workout.ascent }} m</span>
</td>
<td class="text-right">
<span class="cell-heading">
{{ $t('workouts.DESCENT') }}
</span>
<span v-if="workout.with_gpx">{{ workout.descent }} m</span>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>