From e3947f0d11864f40a2c0a202af99e0b14ff14dcf Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Mon, 4 Sep 2017 20:12:23 +0200 Subject: Only show weeks that are available --- views/index.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/index.jade b/views/index.jade index 1b96615..fa5bf55 100644 --- a/views/index.jade +++ b/views/index.jade @@ -44,5 +44,5 @@ block content block scripts script. - !{flagsStr}!{usersStr} + !{flagsStr}!{usersStr}!{validWeekNumbersStr} script(src='/javascripts/bundle.js') -- cgit v1.1 From a03db5fb5d09b85df359a6e2828e6bab4efc1e9f Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 6 Sep 2017 19:20:36 +0200 Subject: Add user friendly error page --- views/redirect.jade | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 views/redirect.jade (limited to 'views') diff --git a/views/redirect.jade b/views/redirect.jade new file mode 100644 index 0000000..f5f9a55 --- /dev/null +++ b/views/redirect.jade @@ -0,0 +1,46 @@ +extends layout + +block head + style. + body { + text-align: center; + margin: 32px; + } + + .content { + max-width: 600px; + margin: 0 auto; + } + + h1 { + color: #212121; + margin-bottom: 32px; + } + + h2 { + color: #727272; + margin-bottom: 64px; + } + + a, a:visited { + margin: 8px; + padding: 8px 16px; + background-color: #c84127; + color: white; + text-decoration: none; + font-weight: bold; + border-radius: 3px; + } + + a:hover, a:focus, a:active { + background-color: #e45a3f; + } + +block content + .content + script document.body.style.opacity = 1 + img(src='/icons/mml-logo.png') + h1 Er is iets mis gegaan tijdens het ophalen van de benodigde informatie + h2 Je kunt proberen door te gaan naar het oude rooster of Magister + a(href='http://www.meetingpointmco.nl/Roosters-AL/doc/') Oud rooster + a(href='http://msa.magister.net/') Magister -- cgit v1.1 From 412d77357f3a8f32b2a0eefca972b9382987e918 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Wed, 6 Sep 2017 20:13:46 +0200 Subject: Fix font on redirect page --- views/redirect.jade | 1 + 1 file changed, 1 insertion(+) (limited to 'views') diff --git a/views/redirect.jade b/views/redirect.jade index f5f9a55..e895456 100644 --- a/views/redirect.jade +++ b/views/redirect.jade @@ -3,6 +3,7 @@ extends layout block head style. body { + font-family: 'Roboto', sans-serif; text-align: center; margin: 32px; } -- cgit v1.1