hledger/hledger-web/templates/register.hamlet
2018-06-24 14:13:04 +02:00

37 lines
1.2 KiB
Plaintext

<h2>
#{header}
<div .hidden-xs>
^{registerChartHtml $ transactionsReportByCommodity r}
<div.table-responsive>
<table .table.table-striped.table-condensed>
<thead>
<tr>
<th style="text-align:left;">
Date
<span .glyphicon.glyphicon-chevron-up>
<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="#{show torig}" style="vertical-align:top;">
<td .date>
<a href="@{JournalR}#transaction-#{tindex torig}">
#{show (tdate tacct)}
<td title="#{show torig}">
#{textElideRight 30 (tdescription tacct)}
<td .account>
#{elideRight 40 acct}
<td .amount style="text-align:right; white-space:nowrap;">
$if not split || not (isZeroMixedAmount amt)
^{mixedAmountAsHtml amt}
<td style="text-align:right;">
^{mixedAmountAsHtml bal}
^{addModal AddR j today}