Increased PHPGit timeout to 120 seconds for large repos. Retrieve Readme.md and render on plugins page.

This commit is contained in:
Andrew Manning
2016-05-03 21:49:52 -04:00
parent 2db86b950e
commit 5686ee13b4
4 changed files with 33 additions and 12 deletions

View File

@@ -44,7 +44,16 @@
function(response) {
$('#chat-rotator').spin(false);
if (response.success) {
$('#new-repo-info').html('<h3>Repo Info</h3><p>The repo was cloned to<br>' + response.message + '</p>');
$('#new-repo-info').html('<h3>Repo Info</h3><p>' + response.message + '</p>');
$('#new-repo-info').append('<h4>Branches</h4><p>'+JSON.stringify(response.repo.branches)+'</p>');
$('#new-repo-info').append('<h4>URL</h4><p>'+response.repo.url+'</p>');
$('#new-repo-info').append('<h4>Objects</h4><ul>');
for(var i = 0; i<response.repo.objects.length; i++) {
$('#new-repo-info').append('<li>'+response.repo.objects[i]+'</li>');
}
$('#new-repo-info').append('</ul>');
$('#new-repo-info').append('<h4>Readme</h4><p>'+response.repo.readme+'</p>');
} else {
window.console.log('Error adding repo :' + response['message']);
}