Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Added a link to add the Nutrition Plan to the diary

Christopher O'Connellb3b661f350ee
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.html
index dd72f7b51..677b63e37 100644
--- a/wger/nutrition/templates/plan/view.html
+++ b/wger/nutrition/templates/plan/view.html
@@ -158,6 +158,11 @@ function wgerCustomModalInit()
{% endif %}
{% endfor %}
{% if is_owner %}
+ <tr>
+ <td colspan="6" class="py-0"><a href="{% url 'nutrition:log:log_plan' plan.id %}"
+ class="btn btn-link btn-block">
+ {% trans "Log this Plan" %}</a></td>
+ </tr>
<tr>
<td colspan="6" class="py-0">
<a href="{% url 'nutrition:meal:add' plan.id %}"