Rename the h-card implementation to match up with the naming of h-feed and h-entry
This commit is contained in:
parent
4b7a8a7198
commit
3ff560e07e
5 changed files with 6 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
module Handler.Home where
|
||||
|
||||
import Import
|
||||
import Widget.Hcard (hcard)
|
||||
import Widget.Card ( hCard )
|
||||
|
||||
getHomeR :: Handler Html
|
||||
getHomeR = do
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{-# LANGUAGE NoImplicitPrelude #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
module Widget.Hcard (hcard) where
|
||||
module Widget.Card ( hCard ) where
|
||||
|
||||
import Import
|
||||
import Data.Maybe (fromJust)
|
||||
|
@ -28,8 +28,8 @@ prettyPgp = T.unwords . T.chunksOf 4 . pgpKeyFingerprint
|
|||
routeFromPgp :: PgpKey -> Route App
|
||||
routeFromPgp PgpKey { pgpKeyFingerprint = f } = staticR ["pgp", T.takeEnd 8 f ++ ".asc"]
|
||||
|
||||
hcard :: Entity User -> Widget
|
||||
hcard (Entity userId user) = do
|
||||
hCard :: Entity User -> Widget
|
||||
hCard (Entity userId user) = do
|
||||
maybeAvatar <- libravatar user
|
||||
mcurrentRoute <- getCurrentRoute
|
||||
userProfiles <- handlerToWidget . runDB $ do
|
||||
|
@ -37,4 +37,4 @@ hcard (Entity userId user) = do
|
|||
sites <- M.fromList . map entityToTuple <$> selectList [SiteId <-. (profileSiteId <$> profiles)] []
|
||||
return $ arrangeProfiles sites profiles
|
||||
pgpKeys <- handlerToWidget . runDB $ map entityVal <$> selectList [PgpKeyUserId ==. userId] []
|
||||
$(widgetFile "hcard")
|
||||
$(widgetFile "mf2/h-card")
|
|
@ -1 +1 @@
|
|||
^{hcard user}
|
||||
^{hCard user}
|
||||
|
|
Loading…
Reference in a new issue