Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix rendering of workouts in mobile
Roland Geiderd4c637f59c30
diff --git a/wger/manager/templates/mobile/tags/render_day.html b/wger/manager/templates/mobile/tags/render_day.htmlindex 2a26fb42d..e6ceaacaf 100644--- a/wger/manager/templates/mobile/tags/render_day.html+++ b/wger/manager/templates/mobile/tags/render_day.html@@ -1,7 +1,7 @@{% load i18n %}{% load staticfiles wger_extras thumbnail %}-{% if not editable %}+{% if editable %}<div class="modal fade" id="editoptions-day-{{ day.obj.id }}"><div class="modal-dialog"><div class="modal-content">@@ -12,40 +12,28 @@<div class="modal-body"><a href="{% url 'manager:day:log' day.obj.id %}"title="{% trans 'Add weight log to this day' %}"+ class="btn btn-default btn-block"{% auto_link_css flavour %}>- <img src="{% static 'images/icons/statistics.svg' %}"- width="22"- height="22"- alt="{% trans 'Add weight log to this day' %}">{% trans 'Add weight log to this day' %}</a>{% if day.set_list|length > 0 %}<a href="{% url 'manager:workout:timer' day.obj.id %}"title="{% trans 'Start gym mode' %}"+ class="btn btn-default btn-block"{% auto_link_css flavour %}>- <img src="{% static 'images/icons/play.svg' %}"- width="22"- height="22"- alt="{% trans 'Start gym mode' %}">{% trans "Start gym mode" %}</a>{% endif %}<a href="{% url 'manager:day:edit' day.obj.id %}"title="{% trans 'Edit' %}"+ class="btn btn-default btn-block"{% auto_link_css flavour "wger-modal-dialog" %}>- <img src="{% static 'images/icons/edit.svg' %}"- width="22"- height="22"- alt="{% trans 'Edit' %}">{% trans 'Edit' %}</a><a href="{% url 'manager:day:delete' day.obj.id %}"title="{% trans 'Delete' %}"+ class="btn btn-default btn-block"{% auto_link_css flavour %}>- <img src="{% static 'images/icons/trash.svg' %}"- width="22"- height="22"- alt="{% trans 'Delete' %}">{% trans "Delete" %}</a></div>@@ -55,7 +43,7 @@{% endif %}-{% if not editable %}+{% if editable %}{% for set in day.set_list %}<div class="modal fade" id="editoptions-set-{{ set.obj.id }}"><div class="modal-dialog">@@ -70,20 +58,14 @@<div class="modal-body"><a href="{% url 'manager:set:edit' set.obj.id %}"title="{% trans 'Edit' %}"+ class="btn btn-default btn-block"{% auto_link_css flavour "wger-modal-dialog" %}>- <img src="{% static 'images/icons/edit.svg' %}"- width="16"- height="16"- alt="{% trans 'Edit' %}">{% trans "Edit" %}</a><a href="{% url 'manager:set:delete' set.obj.id %}"title="{% trans 'Delete' %}"+ class="btn btn-default btn-block"{% auto_link_css flavour %}>- <img src="{% static 'images/icons/trash.svg' %}"- width="16"- height="16"- alt="{% trans 'Delete' %}">{% trans "Delete" %}</a>@@ -91,6 +73,7 @@{% for exercise in set.exercise_list %}<a href="{{ exercise.obj.get_absolute_url }}"title="{{ exercise.obj.name }}"+ class="btn btn-default btn-block"{% auto_link_css flavour %}>{{ exercise.obj.name }}</a>@@ -111,7 +94,7 @@{# Day #}{# #}<a href="#editoptions-day-{{ day.obj.id }}" class="list-group-item active" data-toggle="modal">- {% if not editable %}+ {% if editable %}<span class="glyphicon glyphicon-cog pull-right"></span>{% endif %}@@ -135,7 +118,7 @@class="list-group-item wger-modal-dialog">{% endif %}- {% if not editable %}+ {% if editable %}<span class="glyphicon glyphicon-cog pull-right"></span>{% endif %}@@ -173,7 +156,7 @@</p>{% endif %}- {% if not editable %}+ {% if editable %}{% if exercise.comment_list %}<p class="text-muted exercise-comments">{% for comment in exercise.comment_list %}@@ -188,7 +171,7 @@{% endfor %} <!--for exercise in set--></a>{% empty %}- {% if not editable %}+ {% if editable %}<a href="{% url 'manager:set:add' day.obj.id %}"class="list-group-item list-group-item-success wger-modal-dialog">{% trans "No exercises selected for this day." %}<br>@@ -198,7 +181,7 @@{% endfor %} <!--for set in day-->{% if day.set_list %}- {% if not editable %}+ {% if editable %}<a href="{% url 'manager:set:add' day.obj.id %}" class="list-group-item list-group-item-success wger-modal-dialog"><span class="glyphicon glyphicon-plus"></span>{% trans "Add exercises to this workout day" %}