From 8465ac9f69b7dd28727c750b17317b7e56d1c3c7 Mon Sep 17 00:00:00 2001 From: lance Date: Wed, 8 Apr 2020 16:40:44 -0700 Subject: [PATCH] improve block template --- static/css/main.css | 5 +++++ templates/block.html.tera | 27 ++++++--------------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index abc5df0..4f9402d 100755 --- a/static/css/main.css +++ b/static/css/main.css @@ -284,6 +284,11 @@ p.subheader { font-size: 1.1em; } +.tx-table { + width: 60%; + margin: 0 auto; +} + .tx-table th, .tx-table td { text-align: center; } diff --git a/templates/block.html.tera b/templates/block.html.tera index 4efee16..bfc6e2e 100644 --- a/templates/block.html.tera +++ b/templates/block.html.tera @@ -39,17 +39,17 @@
-

Transactions

+

Coinbase Transaction

-

{% if tx_hashes %}{{ tx_hashes | length }}{% else %}0{% endif %}

+

{{ block_header.miner_tx_hash | truncate(length=12) }}

-

Orphaned

+

Reward

-

{{ block_header.orphan_status }}

+

{{ block_header.reward / 1000000000000 }} XMR

@@ -66,29 +66,14 @@

- + - - - - - - - - - - - {% if tx_hashes %} {% for hash in tx_hashes %} - - - - - + {% endfor %} {% endif %}

Block Transactions

Transactions ({% if tx_hashes %}{{ tx_hashes | length - 1 }}{% else %}?{% endif %})

Coinbase HashAmountFeeBytes
{{ block_header.miner_tx_hash | truncate(length=8) }}{{ block_header.reward / 1000000000000 }} XMR0?
{{ hash | truncate(length=8) }}???{{ hash | truncate(length=12) }}