imp: areg: html output uses a hledger.css file if any, like balcmds
This commit is contained in:
parent
4ef1db3725
commit
b17f6730d8
@ -134,12 +134,16 @@ accountTransactionsReportItemAsCsvRecord
|
|||||||
-- | Render a register report as a HTML snippet.
|
-- | Render a register report as a HTML snippet.
|
||||||
accountTransactionsReportAsHTML :: CliOpts -> Query -> Query -> AccountTransactionsReport -> TL.Text
|
accountTransactionsReportAsHTML :: CliOpts -> Query -> Query -> AccountTransactionsReport -> TL.Text
|
||||||
accountTransactionsReportAsHTML copts reportq thisacctq items =
|
accountTransactionsReportAsHTML copts reportq thisacctq items =
|
||||||
L.renderText $ L.table_ (do L.thead_ (L.tr_ (do L.th_ "date"
|
L.renderText $ do
|
||||||
L.th_ "description"
|
L.link_ [L.rel_ "stylesheet", href_ "hledger.css"]
|
||||||
L.th_ "otheraccounts"
|
L.table_ $ do
|
||||||
L.th_ "change"
|
L.thead_ $ L.tr_ $ do
|
||||||
L.th_ "balance"))
|
L.th_ "date"
|
||||||
L.tbody_ (mconcat (map (htmlRow copts reportq thisacctq) items)))
|
L.th_ "description"
|
||||||
|
L.th_ "otheraccounts"
|
||||||
|
L.th_ "change"
|
||||||
|
L.th_ "balance"
|
||||||
|
L.tbody_ $ mconcat $ map (htmlRow copts reportq thisacctq) items
|
||||||
|
|
||||||
-- | Render one account register report line item as a HTML table row snippet.
|
-- | Render one account register report line item as a HTML table row snippet.
|
||||||
htmlRow :: CliOpts -> Query -> Query -> AccountTransactionsReportItem -> L.Html ()
|
htmlRow :: CliOpts -> Query -> Query -> AccountTransactionsReportItem -> L.Html ()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user