Private
Public Access
1
0

Merge branch 'bugfix/rowerfav' into develop

This commit is contained in:
Sander Roosendaal
2017-11-01 20:12:12 +01:00
8 changed files with 50 additions and 46 deletions
+6 -6
View File
@@ -54,14 +54,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -69,7 +69,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
@@ -81,14 +81,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -96,7 +96,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
+2 -2
View File
@@ -23,7 +23,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<p class="caption"><a href="/rowers/graph/{{ graph.id }}/"> <p class="caption"><a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a></p> alt="{{ graph.filename }}" width="120" height="100"></a></p>
<p class="caption">{{ graph.workout.name }}</p> <p class="caption">{{ graph.workout.name }}</p>
</div> </div>
@@ -46,7 +46,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<p class="caption"><img src="/{{ graph.filename }}" <p class="caption"><img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a></p> alt="{{ graph.filename }}" width="120" height="100"></a></p>
<p class="caption">{{ graph.workout.name }}</p> <p class="caption">{{ graph.workout.name }}</p>
</div> </div>
+1 -1
View File
@@ -4,7 +4,7 @@
<div id="thumb-container" class="grid_3 alpha"> <div id="thumb-container" class="grid_3 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="180" height="150"></a> alt="{{ graph.filename }}" width="180" height="150"></a>
</div> </div>
{% endfor %} {% endfor %}
+6 -6
View File
@@ -80,14 +80,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -95,7 +95,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
@@ -107,14 +107,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -122,7 +122,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
+6 -6
View File
@@ -147,14 +147,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -162,7 +162,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
@@ -174,14 +174,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -189,7 +189,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
+7 -6
View File
@@ -102,14 +102,15 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -117,7 +118,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
@@ -129,14 +130,14 @@
<div id="thumb-container" class="grid_2 alpha"> <div id="thumb-container" class="grid_2 alpha">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% elif forloop.counter == 3 %} {% elif forloop.counter == 3 %}
<div id="thumb-container" class="grid_2 omega"> <div id="thumb-container" class="grid_2 omega">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
@@ -144,7 +145,7 @@
<div id="thumb-container" class="grid_2"> <div id="thumb-container" class="grid_2">
<a href="/rowers/graph/{{ graph.id }}/"> <a href="/rowers/graph/{{ graph.id }}/">
<img src="/{{ graph.filename }}" <img src="/{{ graph.filename }}"
onerror="this.src='/static/img/waiting.png'" onerror="this.src='/static/img/ajax_loader_blue_350.gif'"
alt="{{ graph.filename }}" width="120" height="100"></a> alt="{{ graph.filename }}" width="120" height="100"></a>
</div> </div>
{% endif %} {% endif %}
+3
View File
@@ -6672,10 +6672,13 @@ def workout_flexchart3_view(request,*args,**kwargs):
yparam2 = 'hr' yparam2 = 'hr'
if not request.user.is_anonymous(): if not request.user.is_anonymous():
r = getrower(request.user)
if favoritenr>=0 and r.showfavoritechartnotes: if favoritenr>=0 and r.showfavoritechartnotes:
favoritechartnotes = favorites[favoritenr].notes favoritechartnotes = favorites[favoritenr].notes
else: else:
favoritechartnotes = '' favoritechartnotes = ''
else:
favoritechartnotes = ''
favoritenr = 0 favoritenr = 0
if 'plottype' in kwargs: if 'plottype' in kwargs:
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB