Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the link to ingredient list to nutrition overview

Roland Geider840706908a02
diff --git a/nutrition/templates/nutrition_overview.html b/nutrition/templates/nutrition_overview.html
index 593abdc9b..8d12af4ab 100644
--- a/nutrition/templates/nutrition_overview.html
+++ b/nutrition/templates/nutrition_overview.html
@@ -45,4 +45,15 @@
title="{% trans 'Add nutrition plan' %}">
{% trans "Add nutrition plan" %}</a>
</p>
+
+<p>
+ <a href="{% url nutrition.views.ingredient_overview %}">
+ <img src="{% static 'images/icons/list.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Ingredient overview' %}"
+ title="{% trans 'Ingredient overview' %}">
+ {% trans "Ingredient overview" %}
+ </a>
+</p>
{% endblock %}
diff --git a/nutrition/templates/view_nutrition_plan.html b/nutrition/templates/view_nutrition_plan.html
index a59bf1eec..57aa6ff5c 100644
--- a/nutrition/templates/view_nutrition_plan.html
+++ b/nutrition/templates/view_nutrition_plan.html
@@ -257,15 +257,4 @@ $(document).ready(function() {
{% trans "Delete nutrition plan" %}
</a>
</p>
-
-<p>
-<a href="{% url nutrition.views.ingredient_overview %}">
- <img src="{% static 'images/icons/list.svg' %}"
- width="32"
- height="32"
- alt="{% trans 'Ingredient overview' %}"
- title="{% trans 'Ingredient overview' %}">
- {% trans "Ingredient overview" %}
-</a>
-</p>
{% endblock %}