Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move weight log option to top, as it is needed more often

Roland Geidercb4700bca1f0
diff --git a/wger/manager/templates/mobile/workout/view.html b/wger/manager/templates/mobile/workout/view.html
index aa723792f..87fce63d1 100644
--- a/wger/manager/templates/mobile/workout/view.html
+++ b/wger/manager/templates/mobile/workout/view.html
@@ -134,16 +134,6 @@ $( document ).off("pageinit").on("pageinit", function() {
{% trans "Download as PDF" %}
</a>
-<a href="{% url 'workout-edit' workout.id %}"
- data-role="button">
- <img src="{% static 'images/icons/edit.svg' %}"
- width="32"
- height="32"
- alt="{% trans 'Edit workout' %}"
- title="{% trans 'Edit workout' %}">
- {% trans "Edit workout" %}
-</a>
-
<a href="{% url 'workout-log' workout.id %}"
data-role="button">
<img src="{% static 'images/icons/statistics.svg' %}"
@@ -154,6 +144,16 @@ $( document ).off("pageinit").on("pageinit", function() {
{% trans "View weight log" %}
</a>
+<a href="{% url 'workout-edit' workout.id %}"
+ data-role="button">
+ <img src="{% static 'images/icons/edit.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Edit workout' %}"
+ title="{% trans 'Edit workout' %}">
+ {% trans "Edit workout" %}
+</a>
+
<a href="{% url 'workout-copy' workout.id %}"
data-role="button">
<img src="{% static 'images/icons/copy.svg' %}"
diff --git a/wger/nutrition/templates/mobile/plan/view.html b/wger/nutrition/templates/mobile/plan/view.html
index 94948c7d8..c2e6144da 100644
--- a/wger/nutrition/templates/mobile/plan/view.html
+++ b/wger/nutrition/templates/mobile/plan/view.html
@@ -289,8 +289,8 @@ $(document).ready(function() {
<h3>{% trans "Options" %}</h3>
<a href="{% url 'wger.nutrition.views.plan.export_pdf' plan.id %}"
- class="pdf-button">
- data-role="button"
+ class="pdf-button"
+ data-role="button">
<img src="{% static 'images/icons/save.svg' %}"
width="32"
height="32"