Private
Public Access
1
0

show and unshow fav chart notes according user setting

This commit is contained in:
Sander Roosendaal
2017-10-25 21:26:40 +02:00
parent 8778ee7106
commit 336ccb1c74
3 changed files with 12 additions and 5 deletions

View File

@@ -191,8 +191,8 @@
{% endif %}
</div>
{% if favoritechartnotes %}
<div class="grid_12 alpha">
<p>{{ favoritechartnotes }}</p>
<div class="grid_6 prefix_6 alpha">
<p>Chart {{ favoritenr|add:1 }}:{{ favoritechartnotes }}</p>
</div>
{% endif %}
</div>

View File

@@ -8,7 +8,9 @@
<a href="/rowers/workout/{{ workout.id }}/flexchart?favoritechart={{ forloop.counter |add:"-1" }}">
{{ chart.div | safe }}
</a>
{% if rower.showfavoritechartnotes %}
<span class="tooltiptext">{{ chart.notes }}</span>
{% endif %}
</div>
</div>
{% endfor %}