Display payee and note separately hledger-web

This commit is contained in:
Saku Laesvuori 2026-01-16 12:31:14 +02:00
parent 961fd71e57
commit 807f9d800a
2 changed files with 17 additions and 7 deletions

View File

@ -232,6 +232,11 @@ ul {
color: #888; color: #888;
} }
.transaction .title .transaction-note {
font-size: 1.3em;
display: block;
}
.col-any-0 { .col-any-0 {
width:0 !important; width:0 !important;
height:0 !important; height:0 !important;

View File

@ -10,13 +10,18 @@ $if elem AddPermission perms
$forall torig <- items $forall torig <- items
<li .transaction ##{transactionFrag torig}> <li .transaction ##{transactionFrag torig}>
<div .title title="#{showTransaction torig}"> <div .title title="#{showTransaction torig}">
<time .date datetime="#{show (tdate torig)}" nowrap> $with (payee, note) <- payeeAndNoteFromDescription' $ tdescription torig
#{show (tdate torig)} <time .date datetime="#{show (tdate torig)}" nowrap>
$if not $ T.null $ tcode torig #{show (tdate torig)}
<div .transaction-code> $if not $ T.null $ tcode torig
(#{tcode torig}) <div .transaction-code>
<div> (#{tcode torig})
#{textElideRight 60 (tdescription torig)} $if not $ T.null $ T.strip payee
<div .transaction-payee>
#{textElideRight 60 payee}
$if not $ T.null $ T.strip note
<div .transaction-note>
#{textElideRight 60 note}
$if null $ filter isVisibleTag $ ttags torig $if null $ filter isVisibleTag $ ttags torig
$else $else