Set .logged-in

This commit is contained in:
Gregor Kleen 2018-07-18 10:05:06 +02:00
parent 1c78032f1e
commit e28a0aa851
2 changed files with 3 additions and 1 deletions

View File

@ -478,6 +478,8 @@ instance Yesod UniWorX where
menuTypes <- filterM (menuItemAccessCallback . menuItem) menu
isAuth <- isJust <$> maybeAuthId
-- Lookup Favourites & Theme if possible -- TODO: cache this info in a cookie?!
(favourites',show -> currentTheme) <- do
muid <- maybeAuthPair

View File

@ -39,7 +39,7 @@ $newline never
}
<body .no-js .#{currentTheme}>
<body .no-js .#{currentTheme} :isAuth:.logged-in>
<!-- removes no-js class from body if client supports javascript -->
<script>
document.body.classList.remove('no-js');