~martijnbraam/fathub-v2

1cea158fc230a7bd338ce7848e4632cf6e7f28be — Martijn Braam 1 year, 1 month ago eddcf18
Fix spacing around ingredients
1 files changed, 4 insertions(+), 6 deletions(-)

M fathub/templates/recipe.html
M fathub/templates/recipe.html => fathub/templates/recipe.html +4 -6
@@ 98,17 98,15 @@
                            <span class="ingredient-group">
                            {% for ingredient in token.ingredients %}
                                {% if ingredient is string %}
                                    <span class="ingredient" data-id="{{ ingredient }}">
                                        {{ data.ingredients[ingredient].dataset.title }}
                                    </span>
                                {% else %}
                                    <span class="ingredient" data-id="{{ ingredient }}">{{ data.ingredients[ingredient].dataset.title }}</span>
                                {%- else %}
                                    <span class="ingredient" data-id="{{ ingredient }}">
                                    {% trans amount=ingredient[1], unit=ingredient[2], ingredient=ingredient[0] -%}
                                        {{ amount }} {{ unit }} of {{ ingredient }}
                                    {%- endtrans %}
                                    </span>
                                {% endif %}
                                {{ "," if not loop.last }}
                                {%- endif %}
                                {{ " ," if not loop.last }}
                            {% endfor %}
                            </span>
                        {% endif %}