this works, but does not work until I restart the server for some reason
This commit is contained in:
@ -141,8 +141,8 @@ exports.getAccount = function(req, res) {
|
|||||||
}
|
}
|
||||||
res.render('account/profile', {
|
res.render('account/profile', {
|
||||||
title: 'Manage your Free Code Camp Account',
|
title: 'Manage your Free Code Camp Account',
|
||||||
cc: c,
|
c: c,
|
||||||
ch: req.user.challengesHash,
|
cc: req.user.challengesHash,
|
||||||
moment: moment
|
moment: moment
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -71,7 +71,7 @@ block content
|
|||||||
i.fa.fa-twitter
|
i.fa.fa-twitter
|
||||||
| Link Twitter with your account
|
| Link Twitter with your account
|
||||||
br
|
br
|
||||||
- if (ch[0] > 0)
|
- if (cc[0] > 0)
|
||||||
.panel
|
.panel
|
||||||
.container
|
.container
|
||||||
h1 Completed Challenges
|
h1 Completed Challenges
|
||||||
@ -81,11 +81,11 @@ block content
|
|||||||
tr
|
tr
|
||||||
th Challenge
|
th Challenge
|
||||||
th Date Finished
|
th Date Finished
|
||||||
for challenge in cc
|
for challenge in c
|
||||||
if ch[challenge.challengeNumber] > 0
|
if cc[challenge.challengeNumber] > 0
|
||||||
tr
|
tr
|
||||||
td= cc[challenge.challengeNumber].name
|
td= c[challenge.challengeNumber].name
|
||||||
td= moment(ch[challenge.challengeNumber], 'X').format("MMM DD, YYYY")
|
td= moment(cc[challenge.challengeNumber], 'X').format("MMM DD, YYYY")
|
||||||
br
|
br
|
||||||
.panel
|
.panel
|
||||||
.container
|
.container
|
||||||
|
Reference in New Issue
Block a user