hledger-web-1.3: Web interface for the hledger accounting tool

Safe Haskell | None
Language | Haskell2010

Handler.Common

Description

Common page components and rendering helpers. For global page layout, see Application.hs.

Synopsis

- hledgerLayout :: ViewData -> String -> HtmlUrl AppRoute -> HandlerT App IO Html
- topbar :: ViewData -> HtmlUrl AppRoute
- sidebar :: ViewData -> HtmlUrl AppRoute
- searchform :: ViewData -> HtmlUrl AppRoute
- helplink :: String -> String -> HtmlUrl AppRoute
- nulltemplate :: HtmlUrl AppRoute
- balanceReportAsHtml :: WebOpts -> ViewData -> BalanceReport -> HtmlUrl AppRoute
- accountQuery :: AccountName -> String
- accountOnlyQuery :: AccountName -> String
- accountUrl :: AppRoute -> AccountName -> (AppRoute, [(Text, Text)])
- numberTransactionsReportItems :: [TransactionsReportItem] -> [(Int, Bool, Bool, Bool, TransactionsReportItem)]
- mixedAmountAsHtml :: MixedAmount -> Html

# Documentation

hledgerLayout :: ViewData -> String -> HtmlUrl AppRoute -> HandlerT App IO Html #

Standard hledger-web page layout.

topbar :: ViewData -> HtmlUrl AppRoute #

Global toolbar/heading area.

sidebar :: ViewData -> HtmlUrl AppRoute #

The sidebar used on most views.

searchform :: ViewData -> HtmlUrl AppRoute #

] where u' = (dest, if null q then [] else [("q", pack q)]) style | dest == here = "navlinkcurrent" | otherwise = "navlink" :: Text

]

Search form for entering custom queries to filter journal data.

helplink :: String -> String -> HtmlUrl AppRoute #

] where title = "Edit journal" :: String manyfiles = length (files j) > 1 formathelp = helplink "file-format" "file format help"

]

Link to a topic in the manual.

nulltemplate :: HtmlUrl AppRoute #

balanceReportAsHtml :: WebOpts -> ViewData -> BalanceReport -> HtmlUrl AppRoute #

Render a BalanceReport as html.

accountQuery :: AccountName -> String #

accountOnlyQuery :: AccountName -> String #

accountUrl :: AppRoute -> AccountName -> (AppRoute, [(Text, Text)]) #

numberTransactionsReportItems :: [TransactionsReportItem] -> [(Int, Bool, Bool, Bool, TransactionsReportItem)] #

mixedAmountAsHtml :: MixedAmount -> Html #