{% extends "base.html" %} {% load i18n static wger_extras django_bootstrap_breadcrumbs %} {% block title %}{{ingredient.name}}{% endblock %} {% block header %} {% endblock %} {% block breadcrumbs %} {{ block.super }} {% breadcrumb "Ingredients" "nutrition:ingredient:list" %} {% breadcrumb ingredient ingredient.get_absolute_url %} {% endblock %} {% block content %} {% if ingredient.status == ingredient.STATUS_PENDING %}
{% blocktrans %}This user submitted ingredient is pending a decision to be included in the database. Till then, it will not be shown in the overview or the search.{% endblocktrans %} {% if perms.nutrition.add_ingredient %}{% trans "Please select one of the options below." %}{% endif %}
{% if perms.nutrition.add_ingredient %} {% endif %} {# end check permissions #}{% trans "Macronutrients" %} | |
---|---|
{% trans "Energy" %} | {{ingredient.energy}} {% trans "kcal" %} |
{% trans "Protein" %} | {{ingredient.protein}} {% trans "g" context "weight unit, i.e. grams" %} |
{% trans "Carbohydrates" %} | {{ingredient.carbohydrates}} {% trans "g" context "weight unit, i.e. grams" %} |
{% trans "Sugar content in carbohydrates" %} | {% if ingredient.carbohydrates_sugar %} {{ingredient.carbohydrates_sugar}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %} |
{% trans "Fat" %} | {{ingredient.fat}} {% trans "g" context "weight unit, i.e. grams" %} |
{% trans "Saturated fat content in fats" %} | {% if ingredient.fat_saturated %} {{ingredient.fat_saturated}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %} |
{% trans "Others" %} | |
---|---|
{% trans "Fibres" %} | {% if ingredient.fibres %} {{ingredient.fibres}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %} |
{% trans "Sodium" %} | {% if ingredient.sodium %} {{ingredient.sodium}} {% trans "g" context "weight unit, i.e. grams" %} {% else %} {% trans "n.A." %} {% endif %} |
{% blocktrans %}This exercise was submitted by {{username}}.{% endblocktrans %} {% endwith %}
{% trans "Add new weight unit" %}
{% if ingredient.ingredientweightunit_set.exists %}{% trans "Name" %} |
---|
{{unit.amount}} {{unit.unit.name}} = {{unit.gram}}g
|