From 463567cb07389bf4ce8e4db7595a2a14c0c9d2d1 Mon Sep 17 00:00:00 2001 From: Kukks Date: Wed, 29 Apr 2020 10:11:23 +0200 Subject: [PATCH] Add top Label filter + fix label link inconsistency --- .../Views/Wallets/WalletTransactions.cshtml | 50 ++++++++++++------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/BTCPayServer/Views/Wallets/WalletTransactions.cshtml b/BTCPayServer/Views/Wallets/WalletTransactions.cshtml index 7d7bb20ce..f65304d78 100644 --- a/BTCPayServer/Views/Wallets/WalletTransactions.cshtml +++ b/BTCPayServer/Views/Wallets/WalletTransactions.cshtml @@ -61,6 +61,24 @@ If some transactions appear in BTCPay Server, but are missing on Electrum or another wallet, follow those instructions. +@if (Model.Labels.Any()) +{ + +
+
+
+ Filter by label: + @foreach (var label in Model.Labels) + { + @label.Value + } +
+
+
+}
@@ -72,10 +90,10 @@ - + - - + + @@ -87,27 +105,23 @@ @transaction.Timestamp.ToBrowserDate() - + } else { - + } -
LabelLabel Transaction IdBalanceBalance
+ @foreach (var label in transaction.Labels) {
+ @label.Value + @if (!string.IsNullOrEmpty(label.Link)) { - @label.Value - } - else - { - @label.Value + }
@if (transaction.Positive) { -
@transaction.Balance@transaction.Balance@transaction.Balance@transaction.Balance - + -