mirror of
https://github.com/oxen-io/oxen-observer.git
synced 2023-12-14 09:22:54 +01:00
4b27018965
Basic working prototype of most of the first pages (templates brought in from the old explorer but updated for jinja).
578 B
578 B
{% macro display(tx, show_zero=false) -%}
{% set fee =
(tx.info.rct_signatures.txnFee if 'rct_signatures' in tx.info and 'txnFee' in tx.info.rct_signatures else 0) +
(tx.extra.burn_amount if 'burn_amount' in tx.info else 0)
-%}
{% if fee > 0 or show_zero -%}
{{ fee | loki(tag=False, fixed=True, decimals=4) }}
{%- if 'burn_amount' in tx.extra %}
🔥
{%-endif-%}
{%endif-%}
{% endmacro %}