web: fix tooltips showing transactions (fixes #927)
This commit is contained in:
parent
024bd944a1
commit
10b45c75aa
@ -58,3 +58,4 @@ dayToJsTimestamp d =
|
|||||||
read (formatTime defaultTimeLocale "%s" t) * 1000 -- XXX read
|
read (formatTime defaultTimeLocale "%s" t) * 1000 -- XXX read
|
||||||
where
|
where
|
||||||
t = UTCTime d (secondsToDiffTime 0)
|
t = UTCTime d (secondsToDiffTime 0)
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
#{simpleMixedAmountQuantity $ triCommodityBalance c i},
|
#{simpleMixedAmountQuantity $ triCommodityBalance c i},
|
||||||
'#{showMixedAmountWithZeroCommodity $ triCommodityAmount c i}',
|
'#{showMixedAmountWithZeroCommodity $ triCommodityAmount c i}',
|
||||||
'#{showMixedAmountWithZeroCommodity $ triCommodityBalance c i}',
|
'#{showMixedAmountWithZeroCommodity $ triCommodityBalance c i}',
|
||||||
'#{concat $ intersperse "\\n" $ lines $ show $ triOrigTransaction i}',
|
'#{concat $ intersperse "\\n" $ lines $ showTransaction $ triOrigTransaction i}',
|
||||||
#{tindex $ triOrigTransaction i}
|
#{tindex $ triOrigTransaction i}
|
||||||
],
|
],
|
||||||
/* [] */
|
/* [] */
|
||||||
|
|||||||
@ -15,7 +15,7 @@ $if elem CapAdd caps
|
|||||||
<th .amount style="text-align:right;">Amount
|
<th .amount style="text-align:right;">Amount
|
||||||
|
|
||||||
$forall (torig, _, split, _, amt, _) <- items
|
$forall (torig, _, split, _, amt, _) <- items
|
||||||
<tr .title #transaction-#{tindex torig}>
|
<tr .title #transaction-#{tindex torig} title="#{showTransaction torig}">
|
||||||
<td .date nowrap>
|
<td .date nowrap>
|
||||||
#{show (tdate torig)}
|
#{show (tdate torig)}
|
||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
@ -25,7 +25,7 @@ $if elem CapAdd caps
|
|||||||
^{mixedAmountAsHtml amt}
|
^{mixedAmountAsHtml amt}
|
||||||
|
|
||||||
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
|
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
|
||||||
<tr .posting title="#{show torig}">
|
<tr .posting>
|
||||||
<td>
|
<td>
|
||||||
<td>
|
<td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -19,11 +19,11 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
$forall (torig, tacct, split, acct, amt, bal) <- items
|
$forall (torig, tacct, split, acct, amt, bal) <- items
|
||||||
<tr ##{tindex torig} title="#{show torig}" style="vertical-align:top;">
|
<tr ##{tindex torig} title="#{showTransaction torig}" style="vertical-align:top;">
|
||||||
<td .date>
|
<td .date>
|
||||||
<a href="@{JournalR}#transaction-#{tindex torig}">
|
<a href="@{JournalR}#transaction-#{tindex torig}">
|
||||||
#{show (tdate tacct)}
|
#{show (tdate tacct)}
|
||||||
<td title="#{show torig}">
|
<td>
|
||||||
#{textElideRight 30 (tdescription tacct)}
|
#{textElideRight 30 (tdescription tacct)}
|
||||||
<td .account>
|
<td .account>
|
||||||
#{elideRight 40 acct}
|
#{elideRight 40 acct}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user