add trello ajax partial
This commit is contained in:
@ -1,36 +1,35 @@
|
|||||||
//h2.stats-text
|
h2.stats-text
|
||||||
// .row
|
.row
|
||||||
// .col-xs-6.text-right Days since we launched:
|
.col-xs-6.text-right Days since we launched:
|
||||||
// .col-xs-6.text-left= daysRunning
|
.col-xs-6.text-left= daysRunning
|
||||||
// .row
|
.row
|
||||||
// .col-xs-6.text-right Nonprofit Projects:
|
.col-xs-6.text-right Nonprofit Projects:
|
||||||
// .col-xs-6.text-left= nonprofitProjects
|
.col-xs-6.text-left
|
||||||
// |  
|
include ../partials/trello
|
||||||
// a(href="https://trello.com/b/BA3xVpz9/nonprofit-projects") (view them)
|
//.row
|
||||||
// .row
|
// .col-xs-6.text-right Open Issues:
|
||||||
// .col-xs-6.text-right Open Issues:
|
// .col-xs-6.text-left= issues
|
||||||
// .col-xs-6.text-left= issues
|
// |  
|
||||||
// |  
|
// a(href="https://github.com/freecodecamp/freecodecamp/issues") (create one)
|
||||||
// a(href="https://github.com/freecodecamp/freecodecamp/issues") (create one)
|
//.row
|
||||||
// .row
|
// .col-xs-6.text-right Pull Requests:
|
||||||
// .col-xs-6.text-right Pull Requests:
|
// .col-xs-6.text-left= pulls
|
||||||
// .col-xs-6.text-left= pulls
|
// |  
|
||||||
// |  
|
// a(href="https://github.com/freecodecamp/freecodecamp/pulls") (create one)
|
||||||
// a(href="https://github.com/freecodecamp/freecodecamp/pulls") (create one)
|
.row
|
||||||
// .row
|
.col-xs-6.text-right Campers with at least...
|
||||||
// .col-xs-6.text-right Campers with at least...
|
.col-xs-4
|
||||||
// .col-xs-4
|
.row
|
||||||
// .row
|
.col-xs-6.text-right 3 Points:
|
||||||
// .col-xs-6.text-right 3 Points:
|
.col-xs-6.text-left= c3
|
||||||
// .col-xs-6.text-left= c3
|
.row
|
||||||
// .row
|
.col-xs-6.text-right 10 Points:
|
||||||
// .col-xs-6.text-right 10 Points:
|
.col-xs-6.text-left= c10
|
||||||
// .col-xs-6.text-left= c10
|
.row
|
||||||
// .row
|
.col-xs-6.text-right All 54 Points:
|
||||||
// .col-xs-6.text-right All 54 Points:
|
.col-xs-6.text-left= all
|
||||||
// .col-xs-6.text-left= all
|
.row
|
||||||
// .row
|
.col-xs-6.text-right Star our project here:
|
||||||
// .col-xs-6.text-right Star our project here:
|
.col-xs-6.text-left.github-button-container
|
||||||
// .col-xs-6.text-left.github-button-container
|
html.
|
||||||
// html.
|
<iframe src="http://ghbtns.com/github-btn.html?user=freecodecamp&repo=freecodecamp&type=watch&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe>
|
||||||
// <iframe src="http://ghbtns.com/github-btn.html?user=freecodecamp&repo=freecodecamp&type=watch&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe>
|
|
13
views/partials/trello.jade
Normal file
13
views/partials/trello.jade
Normal file
@ -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 + ' <a href="https://trello.com/b/BA3xVpz9/nonprofit-projects">(view them)</a></h2></div>').prependTo($('#trello'))
|
||||||
|
}
|
||||||
|
);
|
||||||
|
})();
|
Reference in New Issue
Block a user