diff --git a/server/boot/challenge.js b/server/boot/challenge.js index 0b9beb449e..d9888479e4 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -228,6 +228,7 @@ function getSuperBlocks$(challenge$, completedChallenges) { return { isBeta, isComingSoon, + isRequired, name: blockArray[0].block, superBlock: blockArray[0].superBlock, dashedName: dasherize(blockArray[0].block), @@ -317,7 +318,8 @@ module.exports = function(app) { completedZiplineOrBasejump ); - router.get('/map', showMap); + router.get('/map', showMap.bind(null, false)); + router.get('/map-minimal', showMap.bind(null, true)); router.get( '/challenges/next-challenge', returnNextChallenge @@ -574,14 +576,15 @@ module.exports = function(app) { ); } - function showMap({ user }, res, next) { + function showMap(showMinimal, { user }, res, next) { getSuperBlocks$(challenge$, getCompletedChallengeIds(user)) .subscribe( superBlocks => { res.render('map/show', { superBlocks, - title: 'A Map to Learn to Code and Become a Software Engineer' + title: 'A Map to Learn to Code and Become a Software Engineer', + showMinimal }); }, next diff --git a/server/views/layout-wide.jade b/server/views/layout-wide.jade index df33c7b4aa..ef5a9d1cd1 100644 --- a/server/views/layout-wide.jade +++ b/server/views/layout-wide.jade @@ -5,7 +5,8 @@ html(lang='en') include partials/stylesheets body.no-top-and-bottom-margins.full-screen-body-background include partials/scripts - include partials/navbar - include partials/flash + if !showMinimal + include partials/navbar + include partials/flash block content include partials/footer diff --git a/server/views/map/show.jade b/server/views/map/show.jade index c4bfd3f5e2..3878524de3 100644 --- a/server/views/map/show.jade +++ b/server/views/map/show.jade @@ -1,94 +1,95 @@ extends ../layout-wide block content - .row - .col-xs-12.col-md-6.col-md-offset-3 - ul - for superBlock in superBlocks - h2= superBlock.name - for challengeBlock in superBlock.blocks - .row - if (user) - .col-xs-11.col-sm-8.col-md-9 - li.map-p.negative-10 - |    - a(href='#' + challengeBlock.dashedName)= challengeBlock.name - if challengeBlock.markNew - span.text-info.small     - strong - em NEW - if challengeBlock.isComingSoon - span.text-info.small     - strong - em Coming Soon - else - .hidden-xs.col-sm-3.col-md-2 - .col-xs-10.col-sm-8.col-md-9 - span.map-p.negative-10 - a(href='#' + challengeBlock.dashedName)= challengeBlock.name - if challengeBlock.markNew - span.text-info.small     - strong - em NEW - if challengeBlock.isComingSoon - span.text-info.small     - strong - em Coming Soon - h2 Full Stack Development Certification - .row - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Greenfield Nonprofit Project 1 - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Greenfield Nonprofit Project 2 - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Legacy Nonprofit Project 1 - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Legacy Nonprofit Project 2 - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Claim your Full Stack Development Certification + if !showMinimal + .row + .col-xs-12.col-md-6.col-md-offset-3 + ul + for superBlock in superBlocks + h2= superBlock.name + for challengeBlock in superBlock.blocks + .row + if (user) + .col-xs-11.col-sm-8.col-md-9 + li.map-p.negative-10 + |    + a(href='#' + challengeBlock.dashedName)= challengeBlock.name + if challengeBlock.markNew + span.text-info.small     + strong + em NEW + if challengeBlock.isComingSoon + span.text-info.small     + strong + em Coming Soon + else + .hidden-xs.col-sm-3.col-md-2 + .col-xs-10.col-sm-8.col-md-9 + span.map-p.negative-10 + a(href='#' + challengeBlock.dashedName)= challengeBlock.name + if challengeBlock.markNew + span.text-info.small     + strong + em NEW + if challengeBlock.isComingSoon + span.text-info.small     + strong + em Coming Soon + h2 Full Stack Development Certification + .row + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Greenfield Nonprofit Project 1 + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Greenfield Nonprofit Project 2 + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Legacy Nonprofit Project 1 + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Legacy Nonprofit Project 2 + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Claim your Full Stack Development Certification - h2 Coding Interview Preparation - .row - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Whiteboard Coding Interview Training - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Critical Thinking Interview Training - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Mock Interview 1 - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Mock Interview 2 - .col-xs-12.col-sm-9.col-md-10 - li.map-p.negative-10 - |    - span.ion-locked.padded-ionic-icon - | Mock Interview 3 - hr + h2 Coding Interview Preparation + .row + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Whiteboard Coding Interview Training + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Critical Thinking Interview Training + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Mock Interview 1 + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Mock Interview 2 + .col-xs-12.col-sm-9.col-md-10 + li.map-p.negative-10 + |    + span.ion-locked.padded-ionic-icon + | Mock Interview 3 + hr .row .col-xs-12.col-md-6.col-md-offset-3 for superBlock, index in superBlocks