From c95e19407d492a0d4e9e14e320520fe29ce379e5 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 31 Mar 2016 00:06:50 +0200 Subject: Add init data in html page --- src/server/View/Page.hs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/server/View') 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" -- cgit v1.2.3