remove bonfires from campers' public portfolios
This commit is contained in:
@ -214,19 +214,7 @@ module.exports = function(app) {
|
|||||||
bio: user.bio,
|
bio: user.bio,
|
||||||
picture: user.picture,
|
picture: user.picture,
|
||||||
progressTimestamps: user.progressTimestamps,
|
progressTimestamps: user.progressTimestamps,
|
||||||
website1Link: user.website1Link,
|
|
||||||
website1Title: user.website1Title,
|
|
||||||
website1Image: user.website1Image,
|
|
||||||
website2Link: user.website2Link,
|
|
||||||
website2Title: user.website2Title,
|
|
||||||
website2Image: user.website2Image,
|
|
||||||
website3Link: user.website3Link,
|
|
||||||
website3Title: user.website3Title,
|
|
||||||
website3Image: user.website3Image,
|
|
||||||
challenges: challenges,
|
challenges: challenges,
|
||||||
bonfires: user.completedChallenges.filter(function(challenge) {
|
|
||||||
return challenge.challengeType === 5;
|
|
||||||
}),
|
|
||||||
calender: data,
|
calender: data,
|
||||||
moment: moment,
|
moment: moment,
|
||||||
longestStreak: user.longestStreak +
|
longestStreak: user.longestStreak +
|
||||||
|
@ -96,21 +96,3 @@ block content
|
|||||||
td.col-xs-2= moment(challenge.completedDate, 'x').format("MMM DD, YYYY")
|
td.col-xs-2= moment(challenge.completedDate, 'x').format("MMM DD, YYYY")
|
||||||
td.col-xs-6
|
td.col-xs-6
|
||||||
a(href=challenge.solution, target='_blank') View my solution
|
a(href=challenge.solution, target='_blank') View my solution
|
||||||
|
|
||||||
br
|
|
||||||
if (bonfires.length > 0)
|
|
||||||
.col-sm-12
|
|
||||||
table.table.table-striped
|
|
||||||
thead
|
|
||||||
tr
|
|
||||||
th.col-xs-4 Bonfire
|
|
||||||
th.col-xs-2 Completed
|
|
||||||
th.col-xs-6 Solution
|
|
||||||
for bonfire in bonfires
|
|
||||||
tr
|
|
||||||
td.col-xs-4
|
|
||||||
a(href='/challenges/' + bonfire.name, target='_blank')= bonfire.name
|
|
||||||
td.col-xs-2= moment(bonfire.completedDate, 'x').format("MMM DD, YYYY")
|
|
||||||
td.col-xs-6
|
|
||||||
pre.wrappable= bonfire.solution
|
|
||||||
br
|
|
||||||
|
Reference in New Issue
Block a user