From d840347b0fe1d699a49a90f3e153393d3b8ddc3c Mon Sep 17 00:00:00 2001 From: Alan Szepieniec Date: Wed, 13 Aug 2025 13:11:48 +0200 Subject: [PATCH] style: Do not show inputs or outputs table if empty --- templates/web/html/page/announcement.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/web/html/page/announcement.html b/templates/web/html/page/announcement.html index 9b20743..32e23ee 100644 --- a/templates/web/html/page/announcement.html +++ b/templates/web/html/page/announcement.html @@ -40,6 +40,7 @@ {% match &self.announcement_type { AnnouncementType::TransparentTxInfo(tx_info) => { %}
Transparent Transaction Info + {% if !tx_info.inputs.is_empty() { %} @@ -75,6 +76,8 @@ {% } %}
inputs
+ {% } %} + {% if !tx_info.outputs.is_empty() { %} @@ -109,6 +112,7 @@ {% } %}
outputs
+ {% } %}
{% }, AnnouncementType::Unknown(payload) => { %}