make amounts more readable (1.0 -> 1)

This commit is contained in:
Emi Vasilek 2023-11-05 12:11:53 +01:00
parent f813ae5ac3
commit 59f80f6619
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% macro ingredientpart(ing) -%}
{{ing.amount}} {{ing.unit.name}} {{ ing.name }}
{{ing.amount|numprint}} {{ing.unit.name}} {{ ing.name }}
{%- endmacro %}
{% macro ingredient(ing) -%}
{{ingredientpart(ing)}}