web: add an all accounts link to sidebar
This commit is contained in:
		
							parent
							
								
									f825db1c89
								
							
						
					
					
						commit
						b0279cb2df
					
				@ -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}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user