diff --git a/views/partials/stats.jade b/views/partials/stats.jade index d1a78d079c..9870658f42 100644 --- a/views/partials/stats.jade +++ b/views/partials/stats.jade @@ -1,36 +1,35 @@ -//h2.stats-text -// .row -// .col-xs-6.text-right Days since we launched: -// .col-xs-6.text-left= daysRunning -// .row -// .col-xs-6.text-right Nonprofit Projects: -// .col-xs-6.text-left= nonprofitProjects -// |   -// a(href="https://trello.com/b/BA3xVpz9/nonprofit-projects") (view them) -// .row -// .col-xs-6.text-right Open Issues: -// .col-xs-6.text-left= issues -// |   -// a(href="https://github.com/freecodecamp/freecodecamp/issues") (create one) -// .row -// .col-xs-6.text-right Pull Requests: -// .col-xs-6.text-left= pulls -// |   -// a(href="https://github.com/freecodecamp/freecodecamp/pulls") (create one) -// .row -// .col-xs-6.text-right Campers with at least... -// .col-xs-4 -// .row -// .col-xs-6.text-right 3 Points: -// .col-xs-6.text-left= c3 -// .row -// .col-xs-6.text-right 10 Points: -// .col-xs-6.text-left= c10 -// .row -// .col-xs-6.text-right All 54 Points: -// .col-xs-6.text-left= all -// .row -// .col-xs-6.text-right Star our project here: -// .col-xs-6.text-left.github-button-container -// html. -// \ No newline at end of file +h2.stats-text + .row + .col-xs-6.text-right Days since we launched: + .col-xs-6.text-left= daysRunning + .row + .col-xs-6.text-right Nonprofit Projects: + .col-xs-6.text-left + include ../partials/trello + //.row + // .col-xs-6.text-right Open Issues: + // .col-xs-6.text-left= issues + // |   + // a(href="https://github.com/freecodecamp/freecodecamp/issues") (create one) + //.row + // .col-xs-6.text-right Pull Requests: + // .col-xs-6.text-left= pulls + // |   + // a(href="https://github.com/freecodecamp/freecodecamp/pulls") (create one) + .row + .col-xs-6.text-right Campers with at least... + .col-xs-4 + .row + .col-xs-6.text-right 3 Points: + .col-xs-6.text-left= c3 + .row + .col-xs-6.text-right 10 Points: + .col-xs-6.text-left= c10 + .row + .col-xs-6.text-right All 54 Points: + .col-xs-6.text-left= all + .row + .col-xs-6.text-right Star our project here: + .col-xs-6.text-left.github-button-container + html. + \ No newline at end of file diff --git a/views/partials/trello.jade b/views/partials/trello.jade new file mode 100644 index 0000000000..b2021976b2 --- /dev/null +++ b/views/partials/trello.jade @@ -0,0 +1,13 @@ +#trello +script. + (function() { + $.ajax({ + url: 'http://localhost:3001/api/trello', + type: 'GET' + }).done( + function(data) { + var trello = document.createElement('div'); + $(trello).html(data.trello + ' (view them)').prependTo($('#trello')) + } + ); + })(); \ No newline at end of file