mirror of
https://github.com/sstent/foodplanner.git
synced 2026-01-25 19:21:37 +00:00
fixed food details not loading on details tab
This commit is contained in:
21
detailed.patch
Normal file
21
detailed.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- templates/detailed.html
|
||||
+++ templates/detailed.html
|
||||
@@ -1,3 +1,7 @@
|
||||
+{# Look for the meal details section and ensure it shows food breakdown #}
|
||||
+{% for meal_detail in meal_details %}
|
||||
+ {# Existing meal header code... #}
|
||||
+
|
||||
+ {# ADD FOOD BREAKDOWN SECTION: #}
|
||||
+ <div class="food-breakdown">
|
||||
+ <h4>Food Breakdown:</h4>
|
||||
+ <ul>
|
||||
+ {% for food in meal_detail.foods %}
|
||||
+ <li>{{ food.quantity }}g {{ food.name }}
|
||||
+ {% if food.serving_size and food.serving_unit %}
|
||||
+ ({{ food.serving_size }}{{ food.serving_unit }})
|
||||
+ {% endif %}
|
||||
+ </li>
|
||||
+ {% endfor %}
|
||||
+ </ul>
|
||||
+ </div>
|
||||
+{% endfor %}
|
||||
Reference in New Issue
Block a user