Filter by payee by clicking on it
This commit is contained in:
parent
e6f8dc7a38
commit
c6402d918a
@ -48,6 +48,7 @@ getJournalR = do
|
||||
-- XXX:is there no way to escape quotes in queries
|
||||
addTagQuery name value = (JournalR, [("q", qparam <> " \"tag:" <> escapeRegex name <> (if T.null value then "" else "=" <> escapeRegex value) <> "\"")])
|
||||
addCodeQuery code = (JournalR, [("q", qparam <> " \"code:" <> escapeRegex code <> "\"")])
|
||||
addPayeeQuery code = (JournalR, [("q", qparam <> " \"payee:" <> escapeRegex code <> "\"")])
|
||||
|
||||
defaultLayout $ do
|
||||
setTitle "päiväkirja - hledger-web"
|
||||
|
||||
@ -29,6 +29,7 @@ $if elem AddPermission perms
|
||||
(#{tcode torig})
|
||||
$if not $ T.null $ T.strip payee
|
||||
<span .transaction-payee>
|
||||
<a href=@?{addPayeeQuery payee} .filter>
|
||||
#{payee}
|
||||
$if not $ T.null $ T.strip note
|
||||
<details .transaction-note .elided-text>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user