Self hosted FLOSS fitness/workout, nutrition and weight tracker
Split the table with the nutritional data in 2, one with macronutrients, the other one with 'others'
Roland Geider20c2ade4e23f
diff --git a/nutrition/templates/view_ingredient.html b/nutrition/templates/view_ingredient.htmlindex ba0b4edeb..424e728ed 100644--- a/nutrition/templates/view_ingredient.html+++ b/nutrition/templates/view_ingredient.html@@ -27,7 +27,7 @@ $(document).ready(function() {<thead><tr><th>- {{ingredient.name}}+ {% trans "Macronutrients" %}</th><th><div class="editoptions">@@ -53,6 +53,23 @@ $(document).ready(function() {<td>{% trans "Fat" %}</td><td>{{ingredient.fat}} g</td></tr>+ </tbody>+</table>++<table>+ <thead>+ <tr>+ <th>+ {% trans "Others" %}+ </th>+ <th>+ <div class="editoptions">++ </div>+ </th>+ </tr>+ </thead>+ <tbody><tr><td>{% trans "Fibres" %}</td><td>{% if ingredient.fibres %}{{ingredient.fibres}} g{% else %}-/-{% endif %}</td>@@ -96,4 +113,4 @@ $(document).ready(function() {</a></p>-{% endblock %}\ No newline at end of file+{% endblock %}