Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Somewhat improve the design for the diary in plan page

Roland Geider64365cf07005
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.html
index 76584723c..bf635be97 100644
--- a/wger/nutrition/templates/plan/view.html
+++ b/wger/nutrition/templates/plan/view.html
@@ -300,9 +300,18 @@ function custom_modal_init()
</td>
</tr>
{% endfor %}
+ {% if log_data %}
+ <tr>
+ <td colspan="4">
+ <a href="{% url 'nutrition:log:overview' plan.pk %}">{% trans "View details" %}</a>
+ </td>
+ </tr>
+ {% endif %}
</tbody>
</table>
-<a href="{% url 'nutrition:log:overview' plan.pk %}">{% trans "View details" %}</a>
+<p>
+ <a href="{% url 'nutrition:log:overview' plan.pk %}" class="btn btn-success btn-sm">{% trans "Add diary entry" %}</a>
+</p>
{% endblock %}