web: add an all accounts link to sidebar

This commit is contained in:
Simon Michael 2011-06-14 20:22:20 +00:00
parent f825db1c89
commit b0279cb2df
2 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
<div#accountsheading
accounts
$if filtering
\ #
<span.showall
<a href=@{here}>show all
<table.balancereport>
<tr.item :allaccts:.inacct
<td.account colspan=3><a href=@{here}>all accounts
$forall i <- items
^{itemAsHtml vd i}

View File

@ -134,8 +134,8 @@ balanceReportAsHtml _ vd@VD{here=here,q=q,m=m,qopts=qopts,j=j} (items,total) = $
where
l = journalToLedger nullfilterspec j
numpostingsinacct = length . apostings . ledgerAccount l
filtering = not $ null q
inacctmatcher = inAccountMatcher qopts
allaccts = isNothing inacctmatcher
itemAsHtml :: ViewData -> BalanceReportItem -> Hamlet AppRoute
itemAsHtml VD{here=here,q=q} (acct, adisplay, aindent, abal) = $(Settings.hamletFile "balancereportitem")
where