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

Safe HaskellNone
LanguageHaskell2010

Handler.Common

Description

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

Synopsis

Documentation

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

Standard hledger-web page layout.

topbar :: ViewData -> HtmlUrl AppRoute Source #

Global toolbar/heading area.

sidebar :: ViewData -> HtmlUrl AppRoute Source #

The sidebar used on most views.

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.