-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16408d4
commit 8a89c2a
Showing
8 changed files
with
119 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/cryptoadvance/specter/templates/wallet/wallets_overview.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{% extends "base.jinja" %} | ||
{% block main %} | ||
<style> | ||
.arrow :hover { | ||
background-color: #ddd; | ||
color: black; | ||
} | ||
.arrow { | ||
text-decoration: none; | ||
display: inline-block; | ||
margin: 0px 16px 16px; | ||
border-radius: 50%; | ||
color: #fff; | ||
font-size: 1.5em; | ||
} | ||
.disabled { | ||
visibility: hidden; | ||
} | ||
</style> | ||
<h1>Wallets Overview</h1> | ||
<p>Here you can see the combined balance and transactions history of all your Specter wallets.</p> | ||
<h1> | ||
<small style="line-height:30px">Total balance:</small><br> | ||
<span style="color: #fff"> | ||
{{ specter.wallet_manager.wallets.values() | sum(attribute='fullbalance') | btcamount }} | ||
{% if specter.chain !='main' %}t{%endif%}BTC | ||
</span> | ||
{% if specter.wallet_manager.wallets.values() | sum(attribute='balance.untrusted_pending') > 0 %}<br> | ||
<small>( {{ specter.wallet_manager.wallets.values() | sum(attribute='balance.trusted') | btcamount }} confirmed, {{ specter.wallet_manager.wallets.values() | sum(attribute='balance.untrusted_pending') | btcamount }} pending )</small> | ||
{% endif %} | ||
</h1> | ||
{% set transactions = specter.wallet_manager.full_txlist(idx) %} | ||
{% set next_transactions = specter.wallet_manager.full_txlist(idx + 1) %} | ||
{% if idx != 0 or next_transactions|length != 0 %} | ||
<div> | ||
<a href="./?idx={{ idx - 1 }}" class="arrow {% if idx == 0 %}disabled{% endif %}">‹</a> | ||
{% if next_transactions|length > 0 or idx != 0 %} | ||
Page {{ idx + 1 }} | ||
{% endif %} | ||
<a href="./?idx={{ idx + 1 }}" class="arrow {% if next_transactions|length == 0 %}disabled{% endif %}">›</a> | ||
</div> | ||
{% endif %} | ||
<div class="table-holder"> | ||
{% from 'wallet/history/components/tx_table.jinja' import tx_table %} | ||
{% from 'wallet/history/txs/components/full_tx_table.jinja' import full_tx_table %} | ||
{{ | ||
tx_table( | ||
transactions == [], | ||
full_tx_table(transactions, none, specter) | ||
) | ||
}} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters