Add tab to draw a graphical representation of the commit history

This commit is contained in:
Guillaume CAMUS
2014-12-10 17:09:14 +01:00
parent 9dd055ac3b
commit da9f32d527
13 changed files with 1125 additions and 0 deletions

17
themes/default/js/draw.js Normal file
View File

@@ -0,0 +1,17 @@
$(document).ready(function () {
var graphList = [];
if (!document.getElementById('graph-canvas')) {
return;
}
$("#graph-raw-list li span.node-relation").each(function () {
graphList.push($(this).text());
})
gitGraph(document.getElementById('graph-canvas'), graphList);
if ($("#rev-container")) {
$("#rev-container").css("width", $('#git-graph-container').width() - $('#graph-canvas').width());
}
})