Merge pull request #405 from QuincyLarson/master
make / path redirect to landing in case of old account issue
This commit is contained in:
@ -4,11 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
exports.index = function(req, res) {
|
exports.index = function(req, res) {
|
||||||
if (req.user) {
|
|
||||||
res.redirect('/map')
|
|
||||||
} else {
|
|
||||||
res.render('home', {
|
res.render('home', {
|
||||||
title: 'Learn to Code JavaScript and get a Coding Job by Helping Nonprofits'
|
title: 'Learn to Code JavaScript and get a Coding Job by Helping Nonprofits'
|
||||||
});
|
});
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
@ -24,6 +24,9 @@ block content
|
|||||||
.big-break
|
.big-break
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-sm-8.col-sm-offset-2
|
.col-xs-12.col-sm-8.col-sm-offset-2
|
||||||
|
if (user)
|
||||||
|
a.btn.btn-cta.signup-btn.btn-block(href="/challenges") Go to my next challenge
|
||||||
|
else
|
||||||
a.btn.btn-cta.signup-btn.btn-block(href="/login") Start learning to code (it's free)
|
a.btn.btn-cta.signup-btn.btn-block(href="/login") Start learning to code (it's free)
|
||||||
.spacer
|
.spacer
|
||||||
a.btn.btn-cta.btn-success.btn-block(href="/nonprofits") My nonprofit needs coding help
|
a.btn.btn-cta.btn-success.btn-block(href="/nonprofits") My nonprofit needs coding help
|
||||||
@ -82,7 +85,7 @@ block content
|
|||||||
li.ion-code   You'll work through our focused, interactive courses and tutorials
|
li.ion-code   You'll work through our focused, interactive courses and tutorials
|
||||||
li.ion-code   You'll learn to code at your own pace, in your browser or on your phone
|
li.ion-code   You'll learn to code at your own pace, in your browser or on your phone
|
||||||
li.ion-code   You'll become qualified for thousands of jobs currently going unfilled
|
li.ion-code   You'll become qualified for thousands of jobs currently going unfilled
|
||||||
li.ion-code   You can get help in real time from our community chat rooms and forum
|
li.ion-code   You can get help in real time from our community chat rooms
|
||||||
li.ion-code   We all share one common goal: to boost our careers with code
|
li.ion-code   We all share one common goal: to boost our careers with code
|
||||||
.big-break
|
.big-break
|
||||||
.row
|
.row
|
||||||
|
Reference in New Issue
Block a user