Merge pull request #6307 from FreeCodeCamp/feature/show-last-update

Add last updated date to profile algos/challenges
This commit is contained in:
Arsen Melikyan
2016-01-19 21:10:47 +04:00

View File

@ -143,14 +143,16 @@ block content
table.table.table-striped table.table.table-striped
thead thead
tr tr
th.col-xs-6 Algorithms th.col-xs-5 Algorithms
th.col-xs-3.hidden-xs Completed th.col-xs-2.hidden-xs Completed
th.col-xs-3.hidden-xs Solution th.col-xs-2.hidden-xs Last Updated
th.col-xs-2.hidden-xs Solution
for challenge in algos for challenge in algos
tr tr
td.col-xs-6.hidden-xs= removeOldTerms(challenge.name) td.col-xs-5.hidden-xs= removeOldTerms(challenge.name)
td.col-xs-3.hidden-xs= challenge.completedDate ?moment(challenge.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available' td.col-xs-2.hidden-xs= challenge.completedDate ? moment(challenge.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available'
td.col-xs-3.hidden-xs td.col-xs-2.hidden-xs= challenge.lastUpdated ? moment(challenge.lastUpdated, 'x').format("MMM DD, YYYY") : ''
td.col-xs-2.hidden-xs
if (challenge.solution) if (challenge.solution)
a(href='/challenges/' + removeOldTerms(challenge.name) + '?solution=' + encodeURIComponent(encodeFcc(challenge.solution)), target='_blank') View my solution a(href='/challenges/' + removeOldTerms(challenge.name) + '?solution=' + encodeURIComponent(encodeFcc(challenge.solution)), target='_blank') View my solution
else else
@ -165,14 +167,16 @@ block content
table.table.table-striped table.table.table-striped
thead thead
tr tr
th.col-xs-6 Challenges th.col-xs-5 Challenges
th.col-xs-3.hidden-xs Completed th.col-xs-2.hidden-xs Completed
th.col-xs-3.hidden-xs Solution th.col-xs-2.hidden-xs Last Updated
th.col-xs-2.hidden-xs Solution
for challenge in challenges for challenge in challenges
tr tr
td.col-xs-6.hidden-xs= removeOldTerms(challenge.name) td.col-xs-5.hidden-xs= removeOldTerms(challenge.name)
td.col-xs-3.hidden-xs= challenge.completedDate ?moment(challenge.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available' td.col-xs-2.hidden-xs= challenge.completedDate ?moment(challenge.completedDate, 'x').format("MMM DD, YYYY") : 'Not Available'
td.col-xs-3.hidden-xs td.col-xs-2.hidden-xs= challenge.lastUpdated ? moment(challenge.lastUpdated, 'x').format("MMM DD, YYYY") : ''
td.col-xs-2.hidden-xs
if (challenge.solution) if (challenge.solution)
a(href='/challenges/' + removeOldTerms(challenge.name) + '?solution=' + encodeURIComponent(encodeFcc(challenge.solution)), target='_blank') View my solution a(href='/challenges/' + removeOldTerms(challenge.name) + '?solution=' + encodeURIComponent(encodeFcc(challenge.solution)), target='_blank') View my solution
else else