Create helper methods in resources. Get map view working.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
extends ../layout
|
||||
block content
|
||||
script.
|
||||
var bonfireList = !{JSON.stringify(bonfires)};
|
||||
var waypointList = !{JSON.stringify(waypoints)};
|
||||
var ziplineList = !{JSON.stringify(ziplines)};
|
||||
var basejumpList = !{JSON.stringify(basejumps)};
|
||||
var completedBonfires = !{JSON.stringify(completedBonfireList)};
|
||||
var completedChallenges = !{JSON.stringify(completedChallengeList)};
|
||||
.panel.panel-info
|
||||
.panel-heading.text-center
|
||||
h1 Challenge Map
|
||||
@@ -24,7 +31,7 @@ block content
|
||||
h3.negative-15
|
||||
ol
|
||||
for waypoint in waypoints
|
||||
if completedCoursewareList.indexOf(waypoint._id) > -1
|
||||
if completedChallengeList.indexOf(waypoint._id) > -1
|
||||
.row
|
||||
.hidden-xs.col-sm-3.col-md-2.text-primary.ion-checkmark-circled.padded-ionic-icon.text-center
|
||||
.col-xs-12.col-sm-9.col-md-10
|
||||
@@ -65,7 +72,7 @@ block content
|
||||
h3.negative-15
|
||||
ol
|
||||
for zipline in ziplines
|
||||
if completedCoursewareList.indexOf(zipline._id) > -1
|
||||
if completedChallengeList.indexOf(zipline._id) > -1
|
||||
.row
|
||||
.hidden-xs.col-sm-3.col-md-2.text-primary.ion-checkmark-circled.padded-ionic-icon.text-center
|
||||
.col-xs-12.col-sm-9.col-md-10
|
||||
@@ -85,7 +92,7 @@ block content
|
||||
h3.negative-15
|
||||
ol
|
||||
for basejump in basejumps
|
||||
if completedCoursewareList.indexOf(basejump._id) > -1
|
||||
if completedChallengeList.indexOf(basejump._id) > -1
|
||||
.row
|
||||
.hidden-xs.col-sm-3.col-md-2.text-primary.ion-checkmark-circled.padded-ionic-icon.text-center
|
||||
.col-xs-12.col-sm-9.col-md-10
|
||||
|
Reference in New Issue
Block a user