Changeset 2d2eb0d in OpenWorkouts-current for ow/templates


Ignore:
Timestamp:
Jan 23, 2019, 2:07:26 PM (5 years ago)
Author:
Segundo Fdez <segun.2@…>
Branches:
current, feature/docs, master
Children:
4dcf28d
Parents:
5cbc4a0 (diff), c6219ed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/ui

# Conflicts:

Location:
ow/templates
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/dashboard.pt

    r5cbc4a0 r2d2eb0d  
    8888            <div class="workout-intro" tal:content="workout.notes"></div>
    8989
     90            <div class="workout-map" tal:condition="workout.has_gpx">
     91                <a href="" tal:attributes="href request.resource_url(workout)">
     92                    <img src="" tal:attributes="src request.static_url(workout.map_screenshot);
     93                              alt workout.title; title workout.title">
     94                </a>
     95            </div>
     96
    9097            <ul class="workout-options">
    9198              <li class="owo-edit"><a href="" i18n:translate="" tal:attributes="href request.resource_url(workout, 'edit')"><span>edit</span></a></li>
  • ow/templates/workout.pt

    r5cbc4a0 r2d2eb0d  
    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>
     
    145152    <script type="text/javascript" tal:condition="context.has_gpx">
    146153     var workout_map = owjs.map({
     154         map_id: 'map',
    147155         latitude: ${start_point['latitude']},
    148156         longitude: ${start_point['longitude']},
     
    152160         end_icon: '${request.static_url('ow:static/components/leaflet-gpx/pin-icon-end.png')}',
    153161         shadow: '${request.static_url('ow:static/components/leaflet-gpx/pin-shadow.png')}',
     162         elevation: true,
     163         zoom_control: true
    154164     });
    155165     workout_map.render();
Note: See TracChangeset for help on using the changeset viewer.