Changeset b3374f6 in OpenWorkouts-current for ow/templates/dashboard.pt
- Timestamp:
- Feb 12, 2019, 5:55:33 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- c999b73e
- Parents:
- f713dbc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/templates/dashboard.pt
rf713dbc rb3374f6 79 79 80 80 <div class="workout-map" tal:condition="workout.has_gpx"> 81 <a href="" tal:attributes="href request.resource_url(workout)"> 82 <img src="" tal:attributes="src workout.map_screenshot(request); 83 alt workout.title; title workout.title"> 84 </a> 81 <a href="" tal:attributes="href request.resource_url(workout)"> 82 <tal:has-screenshot tal:condition="workout.map_screenshot is not None"> 83 <img src="" tal:attributes="src request.static_url(workout.map_screenshot); 84 alt workout.title; title workout.title"> 85 </tal:has-screenshot> 86 <tal:has-not-screenshot tal:condition="workout.map_screenshot is None"> 87 <img src="" tal:attributes="src request.static_url('ow:static/media/img/no_map.png'); 88 alt workout.title; title workout.title; class 'js-needs-map'"> 89 </tal:has-not-screenshot> 90 </a> 85 91 </div> 86 92 … … 193 199 194 200 <script type="text/javascript"> 201 202 var map_shots = owjs.map_shots({ 203 img_selector: 'img.js-needs-map', 204 }) 205 map_shots.run(); 206 195 207 var week_chart = owjs.week_chart({ 196 208 chart_selector: 'div.js-week-stats svg',
Note: See TracChangeset
for help on using the changeset viewer.