hledger/hledger-web/templates/journal.hamlet
Jakub Zárybnický 5f6da96baa web: UI cleanup
2018-06-24 14:13:04 +02:00

34 lines
1.3 KiB
Plaintext

<h2 #contenttitle>#{title'}
<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
<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, _, split, _, amt, _) <- items
<tr .title #transaction-#{tindex torig}>
<td .date nowrap>#{show (tdate torig)}
<td .description colspan=2>#{textElideRight 60 (tdescription torig)}
<td .amount style="text-align:right;">
$if not split && not (isZeroMixedAmount amt)
\^{mixedAmountAsHtml amt}
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
<tr .item.posting title="#{show torig}">
<td .nonhead>
<td .nonhead>
<td .nonhead>
&nbsp;
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
#{elideAccountName 40 acc}
<td .amount .nonhead style="text-align:right;">
^{mixedAmountAsHtml amt}
^{addModal AddR j today}