diff --git a/src/humulus/templates/recipes/info.html b/src/humulus/templates/recipes/info.html index 43e3991..0360891 100644 --- a/src/humulus/templates/recipes/info.html +++ b/src/humulus/templates/recipes/info.html @@ -86,6 +86,7 @@ {#- Yeast -#} +{% if yeast in recipe %}
| {{ recipe.yeast.name }} | {{ recipe.yeast.lab }} | {{ recipe.yeast.code }} | -{{ recipe.yeast.low_attenuation|int }}% - {{ recipe.yeast.high_attenuation|int }}% | -{{ recipe.yeast.min_temperature|int }}°F - {{ recipe.yeast.max_temperature|int }}°F | -{{ recipe.yeast.flocculation }} | -{{ recipe.yeast.abv_tolerance|int }}% | ++ {% if 'low_attenuation' in recipe.yeast %}{{ recipe.yeast.low_attenuation|int }}%{% endif %} + {% if 'low_attenuation' in recipe.yeast and 'high_attenuation' in recipe.yeast %} - {% endif %} + {% if 'high_attenuation' in recipe.yeast %}{{ recipe.yeast.high_attenuation|int }}%{% endif %} + | ++ {% if 'min_temperature' in recipe.yeast %}{{ recipe.yeast.min_temperature|int }}°F{% endif %} + {% if 'min_temperature' in recipe.yeast and 'max_temperature' in recipe.yeast %} - {% endif %} + {% if 'max_temperature' in recipe.yeast %}{{ recipe.yeast.max_temperature|int }}°F{% endif %} + | +{% if 'flocculation' in recipe.yeast %}{{ recipe.yeast.flocculation }}{% endif %} | +{% if 'abv_tolerance' in recipe.yeast %}{{ recipe.yeast.abv_tolerance|int }}%{% endif %} |