26 lines
984 B
HTML
26 lines
984 B
HTML
{% macro price(price) -%}
|
|
{% if price != None and price is defined and price.price is defined %}{{price.price|round(1)|numprint}}{%else%}?{% endif %} {{price.currency}}
|
|
{%- endmacro %}
|
|
{% macro multiprice(multiprice, shortform) -%}
|
|
{% if multiprice != None and multiprice.pricedb != None and multiprice.pricedb is defined and multiprice.pricedb.price is defined -%}
|
|
{{multiprice.pricedb.price|round(1)|numprint}}
|
|
{%else%}
|
|
?
|
|
{%- endif %}
|
|
{{multiprice.pricedb.currency}}
|
|
{%if multiprice.item_prices_missing != 0 and not shortform%}
|
|
({{multiprice.item_prices_missing}}/{{multiprice.item_count}} prices missing)
|
|
{%endif%}
|
|
{%- endmacro %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
</head>
|
|
<body>
|
|
{% block body %}{% endblock %}
|
|
</body>
|
|
</html>
|