do not render price if unknown
This commit is contained in:
parent
af3454bd0d
commit
21e68445e7
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
{% macro price(rec) -%}
|
||||
{% if rec.price == None %}?{%else%}{{rec.price|round(1)|numprint}}{% endif %} CZK
|
||||
{% macro price(price) -%}
|
||||
{% if price == None %}?{%else%}{{price|round(1)|numprint}}{% endif %} CZK
|
||||
{%- endmacro %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue