From 432a3c12eed33f911b30624613d6bceb5983178f Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Sat, 23 Aug 2025 21:05:25 +0200 Subject: [PATCH] wip --- .../template/transaction/transaction.templ | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/internal/template/transaction/transaction.templ b/internal/template/transaction/transaction.templ index cf10e88..b8fc069 100644 --- a/internal/template/transaction/transaction.templ +++ b/internal/template/transaction/transaction.templ @@ -232,28 +232,30 @@ templ TransactionItem(transaction *types.Transaction, accounts, treasureChests m } >

{ transaction.Timestamp.String() }

- if transaction.Value < 0 { -

- { types.FormatEuros(transaction.Value) }

- } else { -

+ { types.FormatEuros(transaction.Value) }

- } +

+ if transaction.Value < 0 { + - { types.FormatEuros(transaction.Value) } + } else { + + { types.FormatEuros(transaction.Value) } + } +

if transaction.AccountId != nil { -

+

{ accounts[*transaction.AccountId] }

} if transaction.TreasureChestId != nil { -

+

{ treasureChests[*transaction.TreasureChestId] }

} if transaction.Party != "" { -

+

{ transaction.Party }

} if transaction.Description != "" { -

+

{ transaction.Description }

}