show donation addresses

pull/26/head
lza_menace 2 years ago
parent a85198c9ed
commit 5b007bb90d

@ -25,3 +25,8 @@ def trim_arg(all_args, arg_to_trim):
d = all_args.to_dict()
d.pop(arg_to_trim)
return urlencode(d)
@bp.app_template_filter("seems_legit")
def seems_legit(addy):
return len(addy) == 97

@ -138,4 +138,14 @@ input[type="text"] {
td img {
padding-right: .75em;
word-wrap: break-word;
}
.donationAddress {
font-size: .8em;
user-select: all;
color: #ff006e;
display: block;
padding-top: .35em;
word-wrap: break-word;
}

@ -108,7 +108,13 @@
<tbody>
{% for node in nodes %}
<tr class="js-sort-table">
<td>{% if node.is_tor %}<img src="/static/images/tor.svg" width="15px">{% endif %}<span class="nodeURL">{{ node.url }}</span></td>
<td>
{% if node.is_tor %}<img src="/static/images/tor.svg" width="15px">{% endif %}
<span class="nodeURL">{{ node.url }}</span>
{% if node.donation_address | seems_legit %}
<span class="donationAddress">{{ node.donation_address }}</span>
{% endif %}
</td>
<td>{{ node.last_height }}</td>
<td>
{% if node.available %}

Loading…
Cancel
Save