Self hosted FLOSS fitness/workout, nutrition and weight tracker
Show images on nutritional plan view
Roland Geider45d12d789c37
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.htmlindex b6a0b3e87..476d2ba2e 100644--- a/wger/nutrition/templates/plan/view.html+++ b/wger/nutrition/templates/plan/view.html@@ -97,16 +97,19 @@</div></div>{% endif %}-+<h4>{% if meal.name %}{{ meal.name }}{% endif %}</h4><h5>{% if meal.time %}{{ meal.time|time:"H:i" }}{% endif %}</h5>-+</td></tr><tr>{% for item in meal.mealitem_set.select_related %}<td>+ {% if item.ingredient.image %}+ <a href="{{ item.ingredient.off_link }}"><img src="{{ item.ingredient.image.image.url }}" class="img-thumbnail rounded" width="48"></a>+ {% endif %}{% if item.get_unit_type == MEALITEM_WEIGHT_GRAM %}{{ item.amount|floatformat:"0" }}g{% else %}