hledger/hledger-web/templates/register.hamlet

38 lines
1.2 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>
2018-06-17 15:31:10 +03:00
$forall (torig, tacct, split, acct, amt, bal) <- items
2018-06-17 18:42:41 +03:00
<tr ##{tindex torig} title="#{show torig}" style="vertical-align:top;">
2018-06-10 02:39:05 +03:00
<td .date>
<a href="@{JournalR}#transaction-#{tindex torig}">
#{show (tdate tacct)}
2018-06-17 18:42:41 +03:00
<td title="#{show torig}">
#{textElideRight 30 (tdescription tacct)}
<td .account>
#{elideRight 40 acct}
2018-06-10 02:39:05 +03:00
<td .amount style="text-align:right; white-space:nowrap;">
$if not split || not (isZeroMixedAmount 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}