Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the add-links to the sidebar, for consistency

Roland Geider8ba45bd8cd16
diff --git a/manager/templates/workout/overview.html b/manager/templates/workout/overview.html
index 86ef80c6c..f1114aa76 100644
--- a/manager/templates/workout/overview.html
+++ b/manager/templates/workout/overview.html
@@ -30,8 +30,18 @@
</li>
{% endfor %}
</ul>
+{% endblock %}
+
+{% block sidebar %}
+<h3>{% trans "Options" %}</h3>
<p>
- <a href="{% url nutrition.views.add %}">{% trans "Add nutrition plan" %}</a>
+ <a href="{% url manager.views.add %}">
+ <img src="{% static 'images/icons/new.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Add workout' %}"
+ title="{% trans 'Add workout' %}">
+ {% trans "Add workout" %}</a>
</p>
-{% endblock %}
+{% endblock %}
\ No newline at end of file
diff --git a/nutrition/templates/nutrition_overview.html b/nutrition/templates/nutrition_overview.html
index 4a937dd57..8768f125c 100644
--- a/nutrition/templates/nutrition_overview.html
+++ b/nutrition/templates/nutrition_overview.html
@@ -29,8 +29,18 @@
</li>
{% endfor %}
</ul>
+{% endblock %}
+
+{% block sidebar%}
+<h3>{% trans "Options" %}</h3>
<p>
- <a href="{% url nutrition.views.add %}">{% trans "Add nutrition plan" %}</a>
+ <a href="{% url nutrition.views.add %}">
+ <img src="{% static 'images/icons/new.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Add nutrition plan' %}"
+ title="{% trans 'Add nutrition plan' %}">
+ {% trans "Add nutrition plan" %}</a>
</p>
-{% endblock %}
+{% endblock %}
\ No newline at end of file