{% extends "base.html" %} {% load i18n staticfiles wger_extras %} {# #} {# Opengraph #} {# #} {% block opengraph %} {{ block.super }} {% endblock %} {# #} {# Title #} {# #} {% block title %}{% trans "Nutrition plan" %} – {{ plan.creation_date}}{% endblock %} {# #} {# Header #} {# #} {% block header %} {% endblock %} {# #} {# Content #} {# #} {% block content %} {% if plan.description %}
{{plan.description}}
{% endif %} {% if is_owner %} {% for meal in plan.meal_set.select_related %}{% if item.get_unit_type == MEALITEM_WEIGHT_GRAM %}{{ item.amount|floatformat:"0" }}g {% else %} {{ item.amount|floatformat:"0" }} × {{ item.weight_unit.unit.name }} {% endif %}
{% if forloop.last and is_owner %} {% trans "Add item to meal" %} {% endif %} {% empty %} {% if is_owner %} {% trans "No items for this meal." %}{% trans "If you find the ingredient list too short, you might want to activate the preference to also show English ingredients." %} {% trans "That's done here" %}: {% if owner_user.userprofile.show_english_ingredients %} {% else %} {% endif %}
{% endif %} {% endblock %} {# #} {# Side bar #} {# #} {% block sidebar %}{% trans "Energy" %} | {{nutritional_data.total.energy|floatformat:"0"}} {% trans "kcal" %} |
---|---|
{% trans "Goal" %} | {{owner_user.userprofile.calories|floatformat:"0"}} {% trans "kcal" %} |
{% blocktrans %}You have selected that this nutritional plan has a goal amount of calories. Use the calculator or enter the value yourself.{% endblocktrans %} {% trans "That's done here" %}
{% endif %}{% trans "Macronutrients" %} | {% trans "Total" %} | {% trans "Percent of energy" %} | {% if owner_user.userprofile.use_metric %} {% trans "g per body kg" %} {% else %} {% trans "oz per body lb" %} {% endif %} |
---|---|---|---|
{% trans "Energy" %} | {{nutritional_data.total.energy|floatformat}} {% trans "kcal" %} | ||
{% trans "Protein" %} | {{nutritional_data.total.protein|floatformat}} {% trans_weight_unit 'g' owner_user %} | {{nutritional_data.percent.protein|floatformat}} % | {{nutritional_data.per_kg.protein|floatformat:2}} |
{% trans "Carbohydrates" %} | {{nutritional_data.total.carbohydrates|floatformat}} {% trans_weight_unit 'g' owner_user %} | {{nutritional_data.percent.carbohydrates|floatformat}} % | {{nutritional_data.per_kg.carbohydrates|floatformat:2}} |
{% trans "Sugar content in carbohydrates" %} | {{nutritional_data.total.carbohydrates_sugar|floatformat}} {% trans_weight_unit 'g' owner_user %} | ||
{% trans "Fat" %} | {{nutritional_data.total.fat|floatformat}} {% trans_weight_unit 'g' owner_user %} | {{nutritional_data.percent.fat|floatformat}} % | {{nutritional_data.per_kg.fat|floatformat:2}} |
{% trans "Saturated fat content in fats" %} | {{nutritional_data.total.fat_saturated|floatformat}} {% trans_weight_unit 'g' owner_user %} | ||
{% trans "Others" %} | |||
{% trans "Fibres" %} | {{nutritional_data.total.fibres|floatformat}} {% trans_weight_unit 'g' owner_user %} | ||
{% trans "Sodium" %} | {{nutritional_data.total.sodium|floatformat}} {% trans_weight_unit 'g' owner_user %} |