mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-21 14:28:09 -04:00
show donation addresses
This commit is contained in:
parent
a85198c9ed
commit
5b007bb90d
3 changed files with 22 additions and 1 deletions
|
@ -25,3 +25,8 @@ def trim_arg(all_args, arg_to_trim):
|
||||||
d = all_args.to_dict()
|
d = all_args.to_dict()
|
||||||
d.pop(arg_to_trim)
|
d.pop(arg_to_trim)
|
||||||
return urlencode(d)
|
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 {
|
td img {
|
||||||
padding-right: .75em;
|
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>
|
<tbody>
|
||||||
{% for node in nodes %}
|
{% for node in nodes %}
|
||||||
<tr class="js-sort-table">
|
<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>{{ node.last_height }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if node.available %}
|
{% if node.available %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue