Changeset 4554843 in OpenWorkouts-current for ow/templates/workout.pt


Ignore:
Timestamp:
Dec 18, 2018, 10:22:36 AM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
74b9c4d
Parents:
e8e633f
Message:

Put back leaflet-elevation into the workout details template.

The work on our custom leaflet openworkouts charts module is still WIP,
so better have only the leaflet-elevation chart there (that works) for
now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/templates/workout.pt

    re8e633f r4554843  
    122122  <metal:body-js metal:fill-slot="body-js">
    123123
     124
     125    <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
    124126    <!--
    125     <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
    126127    <script src="${request.static_url('ow:static/d3/d3.min.js')}"
    127128            tal:condition="context.has_gpx"></script>
     
    142143    <script src="${request.static_url('ow:static/leaflet-openworkouts/leaflet.openworkouts.src.js')}"
    143144            tal:condition="context.has_gpx"></script>
     145    -->
    144146    <script src="${request.static_url('ow:static/js/ow.js')}"
    145147            tal:condition="context.has_gpx"></script>
    146     -->
    147148
    148149    <script type="text/javascript" tal:condition="context.has_gpx">
    149       var workout_map = owjs.map({
    150           latitude: ${start_point['latitude']},
    151           longitude: ${start_point['longitude']},
    152           zoom: 11,
    153           gpx_url: '${request.resource_url(context, 'gpx')}',
    154           start_icon: '${request.static_url('ow:static/leaflet-gpx/pin-icon-start.png')}',
    155           end_icon: '${request.static_url('ow:static/leaflet-gpx/pin-icon-end.png')}',
    156           shadow: '${request.static_url('ow:static/leaflet-gpx/pin-shadow.png')}',
    157       });
    158       workout_map.render()
     150     var workout_map = owjs.map({
     151         latitude: ${start_point['latitude']},
     152         longitude: ${start_point['longitude']},
     153         zoom: 11,
     154         gpx_url: '${request.resource_url(context, 'gpx')}',
     155         start_icon: '${request.static_url('ow:static/leaflet-gpx/pin-icon-start.png')}',
     156         end_icon: '${request.static_url('ow:static/leaflet-gpx/pin-icon-end.png')}',
     157         shadow: '${request.static_url('ow:static/leaflet-gpx/pin-shadow.png')}',
     158     });
     159     workout_map.render();
    159160    </script>
    160161  </metal:body-js>
Note: See TracChangeset for help on using the changeset viewer.