hledger/hledger-web/templates/register.hamlet

40 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-06-17 18:42:41 +03:00
<h2>
2018-06-10 02:39:05 +03:00
#{header}
<div .hidden-xs>
^{registerChartHtml $ transactionsReportByCommodity r}
2018-06-17 15:31:10 +03:00
<div.table-responsive>
<table .table.table-striped.table-condensed>
2018-06-10 02:39:05 +03:00
<thead>
<tr>
<th style="text-align:left;">
Date
2018-06-17 15:31:10 +03:00
<span .glyphicon.glyphicon-chevron-up>
2018-06-10 02:39:05 +03:00
<th style="text-align:left;">Description
<th style="text-align:left;">To/From Account(s)
<th style="text-align:right; white-space:normal;">Amount Out/In
<th style="text-align:right; white-space:normal;">
#{balancelabel'}
<tbody>
$forall (torig, tacct, split, _acct, amt, bal) <- items
<tr ##{tindex torig} title="#{showTransaction torig}" style="vertical-align:top;">
2018-06-10 02:39:05 +03:00
<td .date>
<a href="@?{(JournalR, [("q", T.unwords $ removeInacct q)])}##{transactionFrag torig}">
2018-06-10 02:39:05 +03:00
#{show (tdate tacct)}
<td>
2018-06-17 18:42:41 +03:00
#{textElideRight 30 (tdescription tacct)}
<td .account>
$forall (Posting { paccount = acc }, (summName,comma)) <- otherTransAccounts torig
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
#{summName}</a>#{comma}
2018-06-10 02:39:05 +03:00
<td .amount style="text-align:right; white-space:nowrap;">
$if not split || not (mixedAmountLooksZero amt)
2018-06-17 15:31:10 +03:00
^{mixedAmountAsHtml amt}
2018-06-17 18:42:41 +03:00
<td style="text-align:right;">
^{mixedAmountAsHtml bal}
$if elem CapAdd caps
^{addModal AddR j today}