hledger/hledger-web/templates/journal.hamlet

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-06-17 18:42:41 +03:00
<h2>
#{title'}
$if elem CapAdd caps
<a #addformlink href="#" role="button" style="cursor:pointer; margin-top:1em;"
data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal">
Add a transaction
2018-06-10 02:39:05 +03:00
<div .table-responsive>
<table .transactionsreport .table .table-condensed>
<thead>
<th .date style="text-align:left;">Date
<th .description style="text-align:left;">Description
<th .account style="text-align:left;">Account
<th .amount style="text-align:right;">Amount
$forall torig <- items
<tr .title ##{transactionFrag torig} title="#{showTransaction torig}">
2018-06-17 18:42:41 +03:00
<td .date nowrap>
#{show (tdate torig)}
<td colspan=2>
#{textElideRight 60 (tdescription torig)}
2018-06-10 02:39:05 +03:00
<td .amount style="text-align:right;">
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
<tr .posting>
2018-06-17 18:42:41 +03:00
<td>
<td>
<td>
2018-06-10 02:39:05 +03:00
&nbsp;
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
#{elideAccountName 40 acc}
2018-06-17 18:42:41 +03:00
<td .amount style="text-align:right;">
2018-06-10 02:39:05 +03:00
^{mixedAmountAsHtml amt}
$if elem CapAdd caps
^{addModal AddR j today}