Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add an info box if there are no weight entries.
Roland Geiderc005078de51d
diff --git a/weight/templates/weight_overview.html b/weight/templates/weight_overview.htmlindex 8617c46eb..380e46835 100644--- a/weight/templates/weight_overview.html+++ b/weight/templates/weight_overview.html@@ -87,6 +87,13 @@ $(document).ready(function () {<h2>{% trans "Weight overview" %}</h2>+{% if not min_date %}+<div class="box warning">+ {% trans "There is no chart here because there are no weight entries." %}+ {% trans "Use link to add one." %}+</div>+{% endif %}+<div id="weight_diagram"></div><p>