add verified flag to challenges so we can tell which ziplines and basejumps have been verified
This commit is contained in:
@ -253,7 +253,8 @@ exports.completedCourseware = function (req, res, next) {
|
|||||||
completedDate: isCompletedDate,
|
completedDate: isCompletedDate,
|
||||||
name: req.body.coursewareInfo.coursewareName,
|
name: req.body.coursewareInfo.coursewareName,
|
||||||
solution: null,
|
solution: null,
|
||||||
githubLink: null
|
githubLink: null,
|
||||||
|
verified: true
|
||||||
});
|
});
|
||||||
var index = req.user.completedCoursewares.indexOf(coursewareHash);
|
var index = req.user.completedCoursewares.indexOf(coursewareHash);
|
||||||
|
|
||||||
@ -307,7 +308,8 @@ exports.completedZiplineOrBasejump = function (req, res, next) {
|
|||||||
completedWith: pairedWith._id,
|
completedWith: pairedWith._id,
|
||||||
completedDate: isCompletedDate,
|
completedDate: isCompletedDate,
|
||||||
solution: solutionLink,
|
solution: solutionLink,
|
||||||
githubLink: githubLink
|
githubLink: githubLink,
|
||||||
|
verified: false
|
||||||
});
|
});
|
||||||
|
|
||||||
req.user.save(function (err, user) {
|
req.user.save(function (err, user) {
|
||||||
@ -333,7 +335,8 @@ exports.completedZiplineOrBasejump = function (req, res, next) {
|
|||||||
completedWith: req.user._id,
|
completedWith: req.user._id,
|
||||||
completedDate: isCompletedDate,
|
completedDate: isCompletedDate,
|
||||||
solution: solutionLink,
|
solution: solutionLink,
|
||||||
githubLink: githubLink
|
githubLink: githubLink,
|
||||||
|
verified: false
|
||||||
});
|
});
|
||||||
pairedWith.save(function (err, paired) {
|
pairedWith.save(function (err, paired) {
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -353,7 +356,8 @@ exports.completedZiplineOrBasejump = function (req, res, next) {
|
|||||||
completedWith: null,
|
completedWith: null,
|
||||||
completedDate: isCompletedDate,
|
completedDate: isCompletedDate,
|
||||||
solution: solutionLink,
|
solution: solutionLink,
|
||||||
githubLink: githubLink
|
githubLink: githubLink,
|
||||||
|
verified: false
|
||||||
});
|
});
|
||||||
|
|
||||||
var index = req.user.uncompletedCoursewares.indexOf(coursewareHash);
|
var index = req.user.uncompletedCoursewares.indexOf(coursewareHash);
|
||||||
|
@ -118,8 +118,7 @@ $(document).ready(function() {
|
|||||||
{
|
{
|
||||||
coursewareInfo: {
|
coursewareInfo: {
|
||||||
coursewareHash: passedCoursewareHash,
|
coursewareHash: passedCoursewareHash,
|
||||||
coursewareName: passedCoursewareName,
|
coursewareName: passedCoursewareName
|
||||||
verified: true
|
|
||||||
}
|
}
|
||||||
}).success(
|
}).success(
|
||||||
function(res) {
|
function(res) {
|
||||||
@ -140,8 +139,7 @@ $(document).ready(function() {
|
|||||||
coursewareName: passedCoursewareName,
|
coursewareName: passedCoursewareName,
|
||||||
completedWith: didCompleteWith,
|
completedWith: didCompleteWith,
|
||||||
publicURL: publicURL,
|
publicURL: publicURL,
|
||||||
challengeType: challengeType,
|
challengeType: challengeType
|
||||||
verified: false
|
|
||||||
}
|
}
|
||||||
}).success(
|
}).success(
|
||||||
function() {
|
function() {
|
||||||
|
@ -97,7 +97,7 @@ block content
|
|||||||
| Try it out
|
| Try it out
|
||||||
|
|
||||||
.hidden-xs.col-sm-12
|
.hidden-xs.col-sm-12
|
||||||
#cal-heatmap.img-center.hidden
|
#cal-heatmap.img-center
|
||||||
script(src="//d3js.org/d3.v3.min.js")
|
script(src="//d3js.org/d3.v3.min.js")
|
||||||
script(src="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js")
|
script(src="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js")
|
||||||
link(rel="stylesheet", href="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css")
|
link(rel="stylesheet", href="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css")
|
||||||
@ -122,13 +122,5 @@ block content
|
|||||||
.row
|
.row
|
||||||
.hidden-xs.col-sm-12.text-center
|
.hidden-xs.col-sm-12.text-center
|
||||||
.row
|
.row
|
||||||
h3.col-sm-6.text-center
|
h3.col-sm-6.text-right Longest Streak: #{longestStreak}
|
||||||
.center-block.
|
h3.col-sm-6.text-left Current Streak #{currentStreak}
|
||||||
#{longestStreak}
|
|
||||||
.center-block.
|
|
||||||
Longest Streak
|
|
||||||
h3.col-sm-6.text-center
|
|
||||||
.center-block.
|
|
||||||
#{currentStreak}
|
|
||||||
.center-block.
|
|
||||||
Current Streak
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
|
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
|
||||||
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js")
|
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js")
|
||||||
script(src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.12.0/ui-bootstrap-tpls.min.js")
|
script(src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.12.0/ui-bootstrap-tpls.min.js")
|
||||||
|
script(src="//d3js.org/d3.v3.min.js")
|
||||||
|
script(src="//cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js")
|
||||||
include meta
|
include meta
|
||||||
title #{title} | Free Code Camp
|
title #{title} | Free Code Camp
|
||||||
meta(charset='utf-8')
|
meta(charset='utf-8')
|
||||||
|
Reference in New Issue
Block a user