From ad1de44dca412414215517831ff0f88487901bb5 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Sun, 7 Nov 2021 21:50:44 +0200 Subject: [PATCH] ui: Use monospace fonts when displaying ids. --- basicswap/static/style.css | 5 +++++ basicswap/templates/active.html | 2 +- basicswap/templates/bid.html | 16 ++++++++-------- basicswap/templates/bid_xmr.html | 12 ++++++------ basicswap/templates/bids.html | 2 +- basicswap/templates/explorers.html | 4 ++-- basicswap/templates/offer.html | 2 +- basicswap/templates/offers.html | 2 +- basicswap/templates/rpc.html | 4 ++-- basicswap/templates/smsgaddresses.html | 4 ++-- 10 files changed, 29 insertions(+), 24 deletions(-) diff --git a/basicswap/static/style.css b/basicswap/static/style.css index d3d2ba9..a7bc895 100644 --- a/basicswap/static/style.css +++ b/basicswap/static/style.css @@ -8,3 +8,8 @@ { font-weight:bold; } + +.monospace +{ + font-family:monospace; +} diff --git a/basicswap/templates/active.html b/basicswap/templates/active.html index efd7acc..e7f0dd1 100644 --- a/basicswap/templates/active.html +++ b/basicswap/templates/active.html @@ -8,7 +8,7 @@ {% for s in active_swaps %} - + {% endfor %}
Bid IDOffer IDBid StatusITX StatusPTX Status
{{ s[0] }}{{ s[1] }}{{ s[2] }}{{ s[3] }}{{ s[4] }}
{{ s[0] }}{{ s[1] }}{{ s[2] }}{{ s[3] }}{{ s[4] }}
diff --git a/basicswap/templates/bid.html b/basicswap/templates/bid.html index f1ed7a5..6e9783b 100644 --- a/basicswap/templates/bid.html +++ b/basicswap/templates/bid.html @@ -19,22 +19,22 @@ State Description {{ data.state_description }} ITX State{{ data.itx_state }} PTX State{{ data.ptx_state }} -Offer{{ data.offer_id }} -Address From{{ data.addr_from }} +Offer{{ data.offer_id }} +Address From{{ data.addr_from }} Proof of Funds{{ data.proof_address }} Created At{{ data.created_at }} Expired At{{ data.expired_at }} Sent{{ data.was_sent }} Received{{ data.was_received }} -Initiate Tx{{ data.initiate_tx }} +Initiate Tx{{ data.initiate_tx }} Initiate Conf{{ data.initiate_conf }} -Participate Tx{{ data.participate_tx }} +Participate Tx{{ data.participate_tx }} Participate Conf{{ data.participate_conf }} {% if data.show_txns %} -Initiate Tx Refund{{ data.initiate_tx_refund }} -Participate Tx Refund{{ data.participate_tx_refund }} -Initiate Tx Spend Tx{{ data.initiate_tx_spend }} -Participate Tx Spend Tx{{ data.participate_tx_spend }} +Initiate Tx Refund{{ data.initiate_tx_refund }} +Participate Tx Refund{{ data.participate_tx_refund }} +Initiate Tx Spend Tx{{ data.initiate_tx_spend }} +Participate Tx Spend Tx{{ data.participate_tx_spend }} {% endif %} diff --git a/basicswap/templates/bid_xmr.html b/basicswap/templates/bid_xmr.html index b2683fc..55ac5ac 100644 --- a/basicswap/templates/bid_xmr.html +++ b/basicswap/templates/bid_xmr.html @@ -19,8 +19,8 @@ Coin To{{ data.coin_to }} Bid State{{ data.bid_state }} State Description {{ data.state_description }} -Offer{{ data.offer_id }} -Address From{{ data.addr_from }} +Offer{{ data.offer_id }} +Address From{{ data.addr_from }} Created At{{ data.created_at }} Expired At{{ data.expired_at }} Sent{{ data.was_sent }} @@ -63,13 +63,13 @@ {% if data.show_txns %} {% if data.xmr_b_shared_address %} -

Shared Address: {{ data.xmr_b_shared_address }}

+

Shared Address: {{ data.xmr_b_shared_address }}

{% endif %}

Transactions

{% for tx in data.txns %} - + {% endfor %}
Tx TypeTx IDBlocks Deep
{{ tx.type }}{{ tx.txid }}{{ tx.confirms }}
{{ tx.type }}{{ tx.txid }}{{ tx.confirms }}
@@ -85,7 +85,7 @@ {% if data.view_tx_hex %}

{{ data.view_tx_hex }}

- {% endif %} @@ -93,7 +93,7 @@ {% if data.lock_transfers %}


-

diff --git a/basicswap/templates/bids.html b/basicswap/templates/bids.html index 68c27f8..83e08fd 100644 --- a/basicswap/templates/bids.html +++ b/basicswap/templates/bids.html @@ -8,7 +8,7 @@
{% for b in bids %} - + {% endfor %}
AtBid IDOffer IDBid StatusITX StatusPTX Status
{{ b[0] }}{{ b[1] }}{{ b[2] }}{{ b[3] }}{{ b[4] }}{{ b[5] }}
{{ b[0] }}{{ b[1] }}{{ b[2] }}{{ b[3] }}{{ b[4] }}{{ b[5] }}
diff --git a/basicswap/templates/explorers.html b/basicswap/templates/explorers.html index 1ffbe14..b9a014e 100644 --- a/basicswap/templates/explorers.html +++ b/basicswap/templates/explorers.html @@ -24,10 +24,10 @@ {% if result %} - {% endif %}

home

- \ No newline at end of file + diff --git a/basicswap/templates/offer.html b/basicswap/templates/offer.html index 16f019f..d8a7706 100644 --- a/basicswap/templates/offer.html +++ b/basicswap/templates/offer.html @@ -75,7 +75,7 @@ {% for b in bids %} - + {% endfor %}
Bid IDBid AmountBid StatusITX StatusPTX Status
{{ b[0] }}{{ b[1] }}{{ b[2] }}{{ b[3] }}{{ b[4] }}
{{ b[0] }}{{ b[1] }}{{ b[2] }}{{ b[3] }}{{ b[4] }}
diff --git a/basicswap/templates/offers.html b/basicswap/templates/offers.html index 685c9a6..fd348b2 100644 --- a/basicswap/templates/offers.html +++ b/basicswap/templates/offers.html @@ -47,7 +47,7 @@ {% for o in offers %} - + {% endfor %}
AtRecipientOffer IDCoin FromCoin ToAmount FromAmount ToRate
{{ o[0] }}{{ o[7] }}{{ o[1] }}{{ o[2] }}{{ o[3] }}{{ o[4] }}{{ o[5] }}{{ o[6] }}
{{ o[0] }}{{ o[7] }}{{ o[1] }}{{ o[2] }}{{ o[3] }}{{ o[4] }}{{ o[5] }}{{ o[6] }}
diff --git a/basicswap/templates/rpc.html b/basicswap/templates/rpc.html index d1c41db..24ea621 100644 --- a/basicswap/templates/rpc.html +++ b/basicswap/templates/rpc.html @@ -19,10 +19,10 @@ {% if result %} - {% endif %}

home

- \ No newline at end of file + diff --git a/basicswap/templates/smsgaddresses.html b/basicswap/templates/smsgaddresses.html index 2142eaf..90fe2c6 100644 --- a/basicswap/templates/smsgaddresses.html +++ b/basicswap/templates/smsgaddresses.html @@ -41,9 +41,9 @@ {% else %} - + {% for sa in smsgaddresses %} - + {% endfor %}
AddressTypeActiveCreated AtNoteAction
{{ network_addr }}Network Address
{{ network_addr }}Network Address
{{ sa.addr }}{{ sa.type }}{{ sa.active_ind }}{{ sa.created_at | formatts }}{{ sa.note }}
{{ sa.addr }}{{ sa.type }}{{ sa.active_ind }}{{ sa.created_at | formatts }}{{ sa.note }}