Add last updated to profile algos/challenges

This commit is contained in:
Berkeley Martinez
2016-01-19 00:02:21 -08:00
parent f5fa0428a6
commit 51056fa4db

View File

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