web: add an all accounts link to sidebar
This commit is contained in:
		
							parent
							
								
									f825db1c89
								
							
						
					
					
						commit
						b0279cb2df
					
				@ -1,11 +1,10 @@
 | 
				
			|||||||
<div#accountsheading
 | 
					<div#accountsheading
 | 
				
			||||||
 accounts
 | 
					 accounts
 | 
				
			||||||
 $if filtering
 | 
					 | 
				
			||||||
  \ #
 | 
					 | 
				
			||||||
  <span.showall
 | 
					 | 
				
			||||||
   <a href=@{here}>show all
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
<table.balancereport>
 | 
					<table.balancereport>
 | 
				
			||||||
 | 
					 <tr.item :allaccts:.inacct
 | 
				
			||||||
 | 
					  <td.account colspan=3><a href=@{here}>all accounts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 $forall i <- items
 | 
					 $forall i <- items
 | 
				
			||||||
  ^{itemAsHtml vd i}
 | 
					  ^{itemAsHtml vd i}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -134,8 +134,8 @@ balanceReportAsHtml _ vd@VD{here=here,q=q,m=m,qopts=qopts,j=j} (items,total) = $
 | 
				
			|||||||
 where
 | 
					 where
 | 
				
			||||||
   l = journalToLedger nullfilterspec j
 | 
					   l = journalToLedger nullfilterspec j
 | 
				
			||||||
   numpostingsinacct = length . apostings . ledgerAccount l
 | 
					   numpostingsinacct = length . apostings . ledgerAccount l
 | 
				
			||||||
   filtering = not $ null q
 | 
					 | 
				
			||||||
   inacctmatcher = inAccountMatcher qopts
 | 
					   inacctmatcher = inAccountMatcher qopts
 | 
				
			||||||
 | 
					   allaccts = isNothing inacctmatcher
 | 
				
			||||||
   itemAsHtml :: ViewData -> BalanceReportItem -> Hamlet AppRoute
 | 
					   itemAsHtml :: ViewData -> BalanceReportItem -> Hamlet AppRoute
 | 
				
			||||||
   itemAsHtml VD{here=here,q=q} (acct, adisplay, aindent, abal) = $(Settings.hamletFile "balancereportitem")
 | 
					   itemAsHtml VD{here=here,q=q} (acct, adisplay, aindent, abal) = $(Settings.hamletFile "balancereportitem")
 | 
				
			||||||
     where
 | 
					     where
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user