diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-03 21:49:52 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-03 21:49:52 -0400 |
commit | 5686ee13b4540bfc0ce6c40f07b6e43c3c55e9a8 (patch) | |
tree | e1dd289cf5ddcf514e5951872f5148b65422e32a /view | |
parent | 2db86b950e78cb01cde659f424c9c01f79edc7a4 (diff) | |
download | volse-hubzilla-5686ee13b4540bfc0ce6c40f07b6e43c3c55e9a8.tar.gz volse-hubzilla-5686ee13b4540bfc0ce6c40f07b6e43c3c55e9a8.tar.bz2 volse-hubzilla-5686ee13b4540bfc0ce6c40f07b6e43c3c55e9a8.zip |
Increased PHPGit timeout to 120 seconds for large repos. Retrieve Readme.md and render on plugins page.
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/admin_plugins.tpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl index e10cde81d..97759f817 100755 --- a/view/tpl/admin_plugins.tpl +++ b/view/tpl/admin_plugins.tpl @@ -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']); } |