Private
Public Access
1
0

opaquification part 1

This commit is contained in:
Sander Roosendaal
2019-01-03 20:50:36 +01:00
parent e42583d4f9
commit f901258b9b
11 changed files with 314 additions and 175 deletions

View File

@@ -7,48 +7,48 @@
<ul>
<li id="workout-dashboard">
{% if user.is_authenticated and workout|may_edit:request %}
<a href="/rowers/workout/{{ workout.id }}/workflow">
<a href="/rowers/workout/{{ workout.id|encode }}/workflow">
<i class="fas fa-tachometer-alt fa-fw"></i>&nbsp;View
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/workflow">
<a href="/rowers/workout/{{ workout.id|encode }}/workflow">
<i class="fas fa-tachometer-alt fa-fw"></i>&nbsp;View
</a>
{% endif %}
</li>
{% if user.is_authenticated and workout|may_edit:request %}
<li id="workout-edit">
<a href="/rowers/workout/{{ workout.id }}/edit">
<a href="/rowers/workout/{{ workout.id|encode }}/edit">
<i class="fas fa-pencil-alt fa-fw"></i>&nbsp;Edit
</a>
</li>
<li id="workout-intervals">
<a href="/rowers/workout/{{ workout.id }}/editintervals">
<a href="/rowers/workout/{{ workout.id|encode }}/editintervals">
<i class="fas fa-pause fa-fw"></i>&nbsp;Intervals
</a>
</li>
{% endif %}
{% if user.is_authenticated %}
<li id="workout-comments">
<a href="/rowers/workout/{{ workout.id }}/comment">
<a href="/rowers/workout/{{ workout.id|encode }}/comment">
<i class="fas fa-comments fa-fw"></i>&nbsp;Comments
({{ workout|aantalcomments }})
</a>
</li>
{% endif %}
<li id="workout-stats">
<a href="/rowers/workout/{{ workout.id }}/stats">
<a href="/rowers/workout/{{ workout.id|encode }}/stats">
<i class="fal fa-table fa-fw"></i>&nbsp;Statistics
</a>
</li>
<li id="compare">
<a href="/rowers/multi-compare/workout/{{ workout.id }}">
<a href="/rowers/multi-compare/workout/{{ workout.id|encode }}">
<i class="fas fa-balance-scale fa-fw"></i>&nbsp;Compare
</a>
</li>
{% if user.is_authenticated and workout|may_edit:request %}
<li id="chart-image">
<a href="/rowers/workout/{{ workout.id }}/image">
<a href="/rowers/workout/{{ workout.id|encode }}/image">
<i class="fas fa-file-image fa-fw"></i>&nbsp;Upload Image
</a>
</li>
@@ -65,23 +65,23 @@
<label for="group-flexchart">Interactive Charts</label>
<ul>
<li id="chart-flexchart">
<a href="/rowers/workout/{{ workout.id }}/flexchart">
<a href="/rowers/workout/{{ workout.id|encode }}/flexchart">
<i class="fas fa-chart-line fa-fw"></i>&nbsp;Flex Chart
</a>
</li>
{% if workout|water %}
<li id="chart-map">
<a href="/rowers/workout/{{ workout.id }}/map">
<a href="/rowers/workout/{{ workout.id|encode }}/map">
<i class="fas fa-map-marked-alt fa-fw"></i>&nbsp;Map
</a>
</li>
<li id="chart-empower">
<a href="/rowers/workout/{{ workout.id }}/forcecurve">
<a href="/rowers/workout/{{ workout.id|encode }}/forcecurve">
<i class="fas fa-dumbbell fa-fw"></i>&nbsp;Force Curve
</a>
</li>
<li id="chart-otwpower">
<a href="/rowers/workout/{{ workout.id }}/interactiveotwplot">
<a href="/rowers/workout/{{ workout.id|encode }}/interactiveotwplot">
<i class="fal fa-calculator-alt fa-fw"></i>&nbsp;Corrected Pace Plot
</a>
</li>
@@ -94,28 +94,28 @@
<label for="group-chart">Static Charts</label>
<ul>
<li id="chart-time">
<a href="/rowers/workout/{{ workout.id }}/addstatic/1">
<a href="/rowers/workout/{{ workout.id|encode }}/addstatic/1">
<i class="fas fa-stopwatch fa-fw"></i>&nbsp;Time
</a>
</li>
<li id="chart-distance">
<a href="/rowers/workout/{{ workout.id }}/addstatic/2">
<a href="/rowers/workout/{{ workout.id|encode }}/addstatic/2">
<i class="fas fa-ruler fa-fw"></i>&nbsp;Distance
</a>
</li>
<li id="chart-powerpie">
<a href="/rowers/workout/{{ workout.id }}/addstatic/13">
<a href="/rowers/workout/{{ workout.id|encode }}/addstatic/13">
<i class="far fa-chart-pie fa-fw"></i>&nbsp;Power (Pie)
</a>
</li>
<li id="chart-hrpie">
<a href="/rowers/workout/{{ workout.id }}/addstatic/3">
<a href="/rowers/workout/{{ workout.id|encode }}/addstatic/3">
<i class="fas fa-heartbeat fa-fw"></i>&nbsp;Heart Rate (Pie)
</a>
</li>
{% if workout|water %}
<li id="chart-otwpower">
<a href="/rowers/workout/{{ workout.id }}/addstatic/9">
<a href="/rowers/workout/{{ workout.id|encode }}/addstatic/9">
<i class="fas fa-chart-area fa-fw"></i>&nbsp;OTW Power
</a>
</li>
@@ -136,7 +136,7 @@
Connect to Concept2
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/c2uploadw">
<a href="/rowers/workout/{{ workout.id|encode }}/c2uploadw">
Concept2
</a>
{% endif %}
@@ -151,7 +151,7 @@
Connect to Strava
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/stravauploadw">
<a href="/rowers/workout/{{ workout.id|encode }}/stravauploadw">
Strava
</a>
{% endif %}
@@ -166,7 +166,7 @@
Connect to SportTracks
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/sporttracksuploadw">
<a href="/rowers/workout/{{ workout.id|encode }}/sporttracksuploadw">
SportTracks
</a>
{% endif %}
@@ -181,7 +181,7 @@
Connect to Runkeeper
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/runkeeperuploadw">
<a href="/rowers/workout/{{ workout.id|encode }}/runkeeperuploadw">
Runkeeper
</a>
{% endif %}
@@ -196,7 +196,7 @@
Connect to MapMyFitness
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/underarmouruploadw">
<a href="/rowers/workout/{{ workout.id|encode }}/underarmouruploadw">
MapMyFitness
</a>
{% endif %}
@@ -211,23 +211,23 @@
Connect to TrainingPeaks
</a>
{% else %}
<a href="/rowers/workout/{{ workout.id }}/tpuploadw">
<a href="/rowers/workout/{{ workout.id|encode }}/tpuploadw">
TrainingPeaks
</a>
{% endif %}
</li>
<li id="export-csv">
<a href="/rowers/workout/{{ workout.id }}/emailcsv">
<a href="/rowers/workout/{{ workout.id|encode }}/emailcsv">
CSV
</a>
</li>
<li id="export-gpx">
<a href="/rowers/workout/{{ workout.id }}/emailgpx">
<a href="/rowers/workout/{{ workout.id|encode }}/emailgpx">
GPX
</a>
</li>
<li id="export-tcx">
<a href="/rowers/workout/{{ workout.id }}/emailtcx">
<a href="/rowers/workout/{{ workout.id|encode }}/emailtcx">
TCX
</a>
</li>
@@ -238,27 +238,27 @@
<label for="group-data">Data</label>
<ul>
<li id="data-smoothen">
<a href="/rowers/workout/{{ workout.id }}/smoothenpace">
<a href="/rowers/workout/{{ workout.id|encode }}/smoothenpace">
<i class="fas fa-magic fa-fw"></i>&nbsp;Smoothen
</a>
</li>
<li id="data-raw">
<a href="/rowers/workout/{{ workout.id }}/undosmoothenpace">
<a href="/rowers/workout/{{ workout.id|encode }}/undosmoothenpace">
<i class="fas fa-undo fa-fw"></i>&nbsp;Restore Raw
</a>
</li>
<li id="data-fusion">
<a href="/rowers/workout/fusion/{{ workout.id }}/">
<a href="/rowers/workout/fusion/{{ workout.id|encode }}/">
<i class="fas fa-blender fa-fw"></i>&nbsp;Sensor Fusion
</a>
</li>
<li id="data-split">
<a href="/rowers/workout/{{ workout.id }}/split">
<a href="/rowers/workout/{{ workout.id|encode }}/split">
<i class="fas fa-cut fa-fw"></i>&nbsp;Split Workout
</a>
</li>
<li id="data-view">
<a href="/rowers/workout/{{ workout.id }}/data">
<a href="/rowers/workout/{{ workout.id|encode }}/data">
<i class="fal fa-table fa-fw"></i>&nbsp;Explore Raw Data
</a>
</ul>
@@ -269,28 +269,28 @@
<ul>
{% if workout|water %}
<li id="advanced-wind">
<a href="/rowers/workout/{{ workout.id }}/wind">
<a href="/rowers/workout/{{ workout.id|encode }}/wind">
<i class="fas fa-pennant fa-fw"></i>&nbsp;Wind
</a>
</li>
<li id="advanced-stream">
<a href="/rowers/workout/{{ workout.id }}/stream">
<a href="/rowers/workout/{{ workout.id|encode }}/stream">
<i class="fas fa-stream fa-fw"></i>&nbsp;Stream
</a>
</li>
<li id="advanced-otwpower">
<a href="/rowers/workout/{{ workout.id }}/otwsetpower">
<a href="/rowers/workout/{{ workout.id|encode }}/otwsetpower">
<i class="fas fa-calculator-alt fa-fw"></i>&nbsp;OTW Power
</a>
</li>
{% endif %}
<li id="advanced-instroke">
<a href="/rowers/workout/{{ workout.id }}/instroke">
<a href="/rowers/workout/{{ workout.id|encode }}/instroke">
<i class="fas fa-search-plus fa-fw"></i>&nbsp;In-Stroke Metrics
</a>
</li>
<li id="advanced-recalcsummary">
<a href="/rowers/workout/{{ workout.id }}/recalcsummary">
<a href="/rowers/workout/{{ workout.id|encode }}/recalcsummary">
<i class="fas fa-window-restore fa-fw"></i>&nbsp;Update Summary
</a>
</li>