oxen-observer/templates/include/sn_kcf.html

11 lines
672 B
HTML
Raw Normal View History

2020-08-18 18:42:24 +02:00
{# First three commons columns of SN tables: pubkey, # contributors, and op fee #}
{%-set portions_base = 2**64 - 4-%}
{%-set solo_node = sn.contributors|length == 1 and sn.funded %}
2020-08-31 18:51:28 +02:00
<td><a href="/sn/{{sn.service_node_pubkey}}">{{sn.service_node_pubkey}}</a></td>
2020-08-18 18:42:24 +02:00
<td title="
2021-01-07 23:04:00 +01:00
{%-for c in sn.contributors%}{%for lc in c.locked_contributions%}{{c.address | truncate(15)}} ({{lc.amount | oxen(decimals=0)}} = {{(lc.amount / sn.staking_requirement * 100) | round(1) | chop0}}%)
2020-08-18 18:42:24 +02:00
{%endfor%}{%endfor%}"><span class="icon">{{sn.contributors | length}}/4</span></td>
<td>{%if not solo_node%}{{ (sn.portions_for_operator / portions_base * 100) | round(3) | chop0 }}{%endif%}</td>