Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common page components and rendering helpers. For global page layout, see Application.hs.
- 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 Source #
Standard hledger-web page layout.
searchform :: ViewData -> HtmlUrl AppRoute Source #
] 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 Source #
] where title = "Edit journal" :: String manyfiles = length (files j) > 1 formathelp = helplink "file-format" "file format help"
]
Link to a topic in the manual.
balanceReportAsHtml :: WebOpts -> ViewData -> BalanceReport -> HtmlUrl AppRoute Source #
Render a BalanceReport as html.
accountQuery :: AccountName -> String Source #
accountOnlyQuery :: AccountName -> String Source #
accountUrl :: AppRoute -> AccountName -> (AppRoute, [(Text, Text)]) Source #
numberTransactionsReportItems :: [TransactionsReportItem] -> [(Int, Bool, Bool, Bool, TransactionsReportItem)] Source #
mixedAmountAsHtml :: MixedAmount -> Html Source #