oxen-observer/templates/include/tx_type_symbol.html
Jason Rhinelander 4b27018965 Initial commit
Basic working prototype of most of the first pages (templates brought in
from the old explorer but updated for jinja).
2020-08-17 22:17:06 -03:00

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 %}