web: update help link
This commit is contained in:
parent
0656d575ac
commit
39fd143c84
@ -131,13 +131,13 @@ server opts args l =
|
|||||||
get "/balance" $ command [] showBalanceReport -- String -> ReaderT Env (StateT Response IO) () -> State Loli ()
|
get "/balance" $ command [] showBalanceReport -- String -> ReaderT Env (StateT Response IO) () -> State Loli ()
|
||||||
get "/register" $ command [] showRegisterReport
|
get "/register" $ command [] showRegisterReport
|
||||||
get "/histogram" $ command [] showHistogram
|
get "/histogram" $ command [] showHistogram
|
||||||
get "/journal" $ ledgerpage [] l'' (showLedgerTransactions opts' args')
|
get "/transactions" $ ledgerpage [] l'' (showLedgerTransactions opts' args')
|
||||||
post "/journal" $ handleAddform l''
|
post "/transactions" $ handleAddform l''
|
||||||
get "/env" $ getenv >>= (text . show)
|
get "/env" $ getenv >>= (text . show)
|
||||||
get "/params" $ getenv >>= (text . show . Hack.Contrib.Request.params)
|
get "/params" $ getenv >>= (text . show . Hack.Contrib.Request.params)
|
||||||
get "/inputs" $ getenv >>= (text . show . Hack.Contrib.Request.inputs)
|
get "/inputs" $ getenv >>= (text . show . Hack.Contrib.Request.inputs)
|
||||||
public (Just "Commands/Web") ["/static"]
|
public (Just "Commands/Web") ["/static"]
|
||||||
get "/" $ redirect ("journal") Nothing
|
get "/" $ redirect ("transactions") Nothing
|
||||||
) env
|
) env
|
||||||
|
|
||||||
ledgerpage :: [String] -> Ledger -> (Ledger -> String) -> AppUnit
|
ledgerpage :: [String] -> Ledger -> (Ledger -> String) -> AppUnit
|
||||||
@ -202,7 +202,7 @@ navbar env =
|
|||||||
<a href="http://hledger.org" id="hledgerorglink">hledger.org</a>
|
<a href="http://hledger.org" id="hledgerorglink">hledger.org</a>
|
||||||
<% navlinks env %>
|
<% navlinks env %>
|
||||||
-- <% searchform env %>
|
-- <% searchform env %>
|
||||||
<a href="http://hledger.org/README.html" id="helplink">help</a>
|
<a href="http://hledger.org/MANUAL.html" id="helplink">help</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
getParamOrNull p = fromMaybe "" `fmap` getParam p
|
getParamOrNull p = fromMaybe "" `fmap` getParam p
|
||||||
@ -214,7 +214,7 @@ navlinks _ = do
|
|||||||
let addparams=(++(printf "?a=%s&p=%s" (urlEncode a) (urlEncode p)))
|
let addparams=(++(printf "?a=%s&p=%s" (urlEncode a) (urlEncode p)))
|
||||||
link s = <a href=(addparams s) class="navlink"><% s %></a>
|
link s = <a href=(addparams s) class="navlink"><% s %></a>
|
||||||
<div id="navlinks">
|
<div id="navlinks">
|
||||||
<% link "journal" %> |
|
<% link "transactions" %> |
|
||||||
<% link "register" %> |
|
<% link "register" %> |
|
||||||
<% link "balance" %>
|
<% link "balance" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user