2021-08-08 21:23:11 +02:00
{#-
Wenn keine Zutat-Menge definiert ist, wird statt dessen
in folgenden Loop nur die Zutat gerendert.
-#}
{{- '\n ' -}} < li >
{{- '\n ' -}} < span
{%- if ing.usda_num is defined and ing.usda_num != "" -%}
{{- ' id=' -}}"usda_{{- ing.usda_num -}}"
{%- endif -%}
>{{ ing.ingredient }}: nach belieben< / span >
{#-
Hier wird eine kurznotiz zur verarbeitung gerendert
oder ein Link zur Verarbeitungsnotiz.
-#}
2021-08-11 21:42:40 +02:00
{%- if ing.processing is defined and ing.processing != "" and ing.processing.blocks is defined and ing.processing.blocks != "" and not hide_recepie_processing | default(false) -%}
2021-08-08 21:23:11 +02:00
{%- if ing.processing.blocks != [] -%}
{%- for prc in ing.processing.blocks -%}
{%- if loop.index == 1 -%}
{%- if prc.short|default(False) -%}
{{- ' ' -}}
< i > ({{ prc.process }})< / i >
{%- else -%}
{{- ' ' -}}
2021-11-17 00:39:45 +01:00
< i > (< a href = "#processing_{{- ing.ingredient | string -}}" class = "processing" > Angaben zur Verarbeitung von {{ ing.ingredient }} beachten< / a > )< / i >
2021-08-08 21:23:11 +02:00
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{#-
Render alternativzutat, wenn verfügbar!
-#}
2021-08-11 21:42:40 +02:00
{%- if ing.substitutions is defined and ing.substitutions != "" and not hide_recepie_substitutions | default(false) -%}
2021-08-08 21:23:11 +02:00
{%- if ing.substitutions.blocks is defined and ing.substitutions.blocks != "" -%}
{%- if ing.substitutions.blocks != [] -%}
{%- for sst in ing.substitutions.blocks -%}
{%- if sst.amounts is defined and sst.amounts != "" and sst.amounts.blocks is defined and sst.amounts.blocks != "" -%}
{%- if sst.amounts.blocks != [] -%}
{%- for amt2 in sst.amounts.blocks -%}
{%- if loop.index == prt_loop -%}
{%- if amt2.amount is defined and amt2.amount != "" and amt2.amount != 0 and amt2.amount != '0' -%}
{{- ' ' -}}< i > < span
{%- if sst.usda_num is defined and sst.usda_num != "" -%}
{{- ' id=' -}}"usda_{{- sst.usda_num -}}"
{%- endif -%}
>(alternativ {{ sst.ingredient }})< / span > < / i >
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{{- '\n ' -}} < / li >