diff options
author | Joris | 2015-09-12 23:57:16 +0200 |
---|---|---|
committer | Joris | 2015-09-12 23:57:16 +0200 |
commit | a48e79e2f7c1ab1ffb52b86ef9e900c75c5d023b (patch) | |
tree | 05a613aef2d338f10bcdd394e520450656ed8f1c /src/server/View | |
parent | d87dbd1360c14df83552fd757438c23e5d7b9f9c (diff) |
Adding UI income read-only
Diffstat (limited to 'src/server/View')
-rw-r--r-- | src/server/View/Mail/SignIn.hs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/server/View/Mail/SignIn.hs b/src/server/View/Mail/SignIn.hs index fc73dae..dca261d 100644 --- a/src/server/View/Mail/SignIn.hs +++ b/src/server/View/Mail/SignIn.hs @@ -8,10 +8,6 @@ import Data.Text (Text) import qualified Data.Text.Lazy as LT import Data.Text.Lazy.Builder (toLazyText, fromText) -import Text.Blaze.Html -import Text.Blaze.Html5 -import Text.Blaze.Html.Renderer.Text (renderHtml) - import Model.Database (User(..)) import qualified Model.Mail as M import Model.Message.Key @@ -24,28 +20,10 @@ getMail user url to = , M.to = to , M.subject = (getMessage SignInMailTitle) , M.plainBody = plainBody user url - , M.htmlBody = htmlBody user url } plainBody :: User -> Text -> LT.Text -plainBody user url = - LT.intercalate - "\n" - [ strictToLazy (getParamMessage [userName user] HiMail) - , "" - , strictToLazy (getMessage SignInLinkMail) - , strictToLazy url - ] - -htmlBody :: User -> Text -> LT.Text -htmlBody user url = - renderHtml . docTypeHtml . body $ do - toHtml $ strictToLazy (getParamMessage [userName user] HiMail) - br - br - toHtml $ strictToLazy (getMessage SignInLinkMail) - br - toHtml url +plainBody user url = strictToLazy (getParamMessage [userName user, url] SignInMail) strictToLazy :: Text -> LT.Text strictToLazy = toLazyText . fromText |