Changeset 4554843 in OpenWorkouts-current for ow/templates/workout.pt
- Timestamp:
- Dec 18, 2018, 10:22:36 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 74b9c4d
- Parents:
- e8e633f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/templates/workout.pt
re8e633f r4554843 122 122 <metal:body-js metal:fill-slot="body-js"> 123 123 124 125 <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script> 124 126 <!-- 125 <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>126 127 <script src="${request.static_url('ow:static/d3/d3.min.js')}" 127 128 tal:condition="context.has_gpx"></script> … … 142 143 <script src="${request.static_url('ow:static/leaflet-openworkouts/leaflet.openworkouts.src.js')}" 143 144 tal:condition="context.has_gpx"></script> 145 --> 144 146 <script src="${request.static_url('ow:static/js/ow.js')}" 145 147 tal:condition="context.has_gpx"></script> 146 -->147 148 148 149 <script type="text/javascript" tal:condition="context.has_gpx"> 149 150 151 152 153 154 155 156 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(); 159 160 </script> 160 161 </metal:body-js>
Note: See TracChangeset
for help on using the changeset viewer.