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 }

}