mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
webyesod: fix stylesheet content type
This commit is contained in:
parent
67b04725c9
commit
f3d9c44f81
@ -91,9 +91,7 @@ getStyleCss :: Handler HledgerWebApp ()
|
|||||||
getStyleCss = do
|
getStyleCss = do
|
||||||
app <- getYesod
|
app <- getYesod
|
||||||
let dir = appWebdir app
|
let dir = appWebdir app
|
||||||
s <- liftIO $ readFile $ dir </> "style.css"
|
sendFile "text/css" $ dir </> "style.css"
|
||||||
header "Content-Type" "text/css"
|
|
||||||
return $ RepPlain $ toContent s
|
|
||||||
|
|
||||||
getJournalPage :: Handler HledgerWebApp RepHtml
|
getJournalPage :: Handler HledgerWebApp RepHtml
|
||||||
getJournalPage = withLatestJournalRender (const showTransactions)
|
getJournalPage = withLatestJournalRender (const showTransactions)
|
||||||
|
Loading…
Reference in New Issue
Block a user