aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-03-17 23:58:44 +0000
committerSean Whitton <spwhitton@spwhitton.name>2015-03-17 23:58:44 +0000
commit8c6ee0a9d6e8034263ab41a4d65b6a060bd64dc6 (patch)
tree746eee10c56791c5cce71ec04b124d8b7e766b32
parent848b343eaacd83fa840f341de1bd33f1ff3a432c (diff)
downloadsariulclocks-8c6ee0a9d6e8034263ab41a4d65b6a060bd64dc6.tar.gz
Revert "change page order when no class in session"
-rw-r--r--src/sariulclocks.hs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/sariulclocks.hs b/src/sariulclocks.hs
index c661438..3bc55a2 100644
--- a/src/sariulclocks.hs
+++ b/src/sariulclocks.hs
@@ -116,12 +116,7 @@ makePage = do
theNavBar <- navBar
theClocks <- clocks
theRankings <- rankings
- currentClass <- liftM (currentClass) getSession
- let page =
- case currentClass of
- Just _ -> theNavBar +++ theClocks +++ theDate +++ theRankings
- Nothing -> theNavBar +++ br +++ theRankings +++ theDate +++ theClocks
- return page
+ return (theNavBar +++ theClocks +++ theDate +++ theRankings)
cgiMain :: CGI CGIResult
cgiMain = do
@@ -150,9 +145,6 @@ cgiMain = do
setCookie $ makeClassCookie clockTime newSession
setCookie $ makeClockCookie clockTime newSession
- -- debug
- -- let html' = html +++ (paragraph << (show cookieClock)) +++ paragraph << (show $ makeClockCookie clockTime newSession)
-
output $ templateInject htmlTemplate html
main = runCGI . handleErrors $ cgiMain