diff options
Diffstat (limited to 'src/server/View')
-rw-r--r-- | src/server/View/Page.hs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/server/View/Page.hs b/src/server/View/Page.hs index 0f1ff86..4108b99 100644 --- a/src/server/View/Page.hs +++ b/src/server/View/Page.hs @@ -20,10 +20,11 @@ import Design.Global (globalDesign) import Model.Message import Model.Json.Conf -import Model.Message.Key (Key, Key(SharedCost)) +import Model.Json.Init (InitResult) +import Model.Message.Key (Key(SharedCost)) -page :: Conf -> Maybe Key -> Text -page conf mbSignInError = +page :: Conf -> InitResult -> Text +page conf initResult = renderHtml . docTypeHtml $ do H.head $ do meta ! charset "UTF-8" @@ -31,7 +32,7 @@ page conf mbSignInError = script ! src "javascripts/client.js" $ "" jsonScript "messages" getTranslations jsonScript "conf" conf - jsonScript "signInError" mbSignInError + jsonScript "initResult" initResult link ! rel "stylesheet" ! type_ "text/css" ! href "css/reset.css" link ! rel "stylesheet" ! href "css/font-awesome-4.5.0/css/font-awesome.min.css" link ! rel "icon" ! type_ "image/png" ! href "images/icon.png" |