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).
1.9 KiB
1.9 KiB
{% macro display(tx) -%}
{% if tx.info.version >= 4 -%}
{% if tx.info.type == 1 and 'sn_state_change' in tx.extra -%}
{% if tx.extra.sn_state_change.type == 'decom' -%}
👎
{% elif tx.extra.sn_state_change.type == 'recom' -%}
👍
{% elif tx.extra.sn_state_change.type == 'dereg' -%}
🚫
{% elif tx.extra.sn_state_change.type == 'ip' -%}
📋
{% else -%}
❓
{% endif -%}
{% elif tx.info.type == 2 -%}
🔓
{% elif tx.info.type == 4 and 'lns' in tx.extra -%}
{% if 'buy' in tx.extra.lns -%}
🎫
{% elif 'update' in tx.extra.lns -%}
💾
{% endif -%}
{% elif 'sn_registration' in tx.extra -%}
🏁
{% elif 'sn_contributor' in tx.extra -%}
⚑
{% endif -%}
{% endif -%}
{% endmacro %}