Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't show the drag and drop handle if there is only one set

Roland Geider9128b8aaaeba
diff --git a/wger/manager/templates/tags/render_day.html b/wger/manager/templates/tags/render_day.html
index d9f3a0f91..9eb481817 100644
--- a/wger/manager/templates/tags/render_day.html
+++ b/wger/manager/templates/tags/render_day.html
@@ -55,6 +55,7 @@ $(document).ready(function() {
<tr id="set-{{ set.obj.id }}">
<td class="ym-g10">{{ forloop.counter }}
<span class="editoptions">
+ {% if day.set_list|length > 1 %}
<img src="{% static 'images/icons/move.svg' %}"
width="22"
height="22"
@@ -62,6 +63,7 @@ $(document).ready(function() {
title="{% trans 'Move me' %}"
class="dragndrop-handle">
<br>
+ {% endif %}
<a href="{% url 'set-edit' set.obj.id %}"
title="{% trans 'Edit' %}"
class="modal-dialog">