packages feed

hledger-web-1.23: templates/balance-report.hamlet

<tr :here == journalR:.inacct>
  <td .top .acct>
    <a href=@{journalR} :here == journalR:.inacct
       title="Show general journal entries, most recent first">
      Journal
  <td .top>
$forall (acct, adisplay, aindent, abal) <- items
  <tr
     :matchesAcctSelector acct:.inacct
     :hideEmpty && not (isInterestingAccount acct):.hide>
    <td .acct :not (isInterestingAccount acct):.empty>
      <div .ff-wrapper>
        \#{indent aindent}
        <a.acct-name href="@?{(registerR, [("q", replaceInacct q $ accountQuery acct)])}"
           title="Show transactions affecting this account and subaccounts">
          #{adisplay}
        $if hasSubAccounts acct
          <a href="@?{(registerR, [("q", replaceInacct q $ accountOnlyQuery acct)])}" .only.hidden-sm.hidden-xs
             title="Show transactions affecting this account but not subaccounts">only
    <td>
      ^{mixedAmountAsHtml abal}
<tr .total>
  <td>
  <td>
    ^{mixedAmountAsHtml total}