forked from blockcypher/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbalance_widget.html
39 lines (29 loc) · 1.05 KB
/
balance_widget.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% load btc_formats %}
{% load humanize %}
<html>
<head>
<title></title>
{# Bootstrap core CSS #}
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
{# FontAwesome #}
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<a target="_blank" href="{{ BASE_URL }}{% url 'address_overview' coin_symbol b58_address %}" class="btn btn-default">
<i class="fa fa-qrcode"></i>
{{ b58_address }}
<h4>
{% satoshis_to_user_units_trimmed address_overview.final_balance 'btc' coin_symbol True 0 %}
</h4>
<i>
{{ address_overview.final_n_tx|intcomma }} Transaction{{ address_overview.final_n_tx|pluralize }}
{% if address_overview.unconfirmed_n_tx %}
({{ address_overview.unconfirmed_n_tx }} Unconfirmed)
{% endif %}
</i>
</a>
<p align="center">
<a class="text-muted" href="http://www.blockcypher.com/">Powered by BlockCypher</a>
</p>
</body>
</html>