Merge branch 'master' of gitlab.cip.ifi.lmu.de:jost/UniWorX
This commit is contained in:
commit
c2b94708c8
@ -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
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user