aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/admin_plugins.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/admin_plugins.tpl')
-rwxr-xr-xview/tpl/admin_plugins.tpl19
1 files changed, 8 insertions, 11 deletions
diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl
index 97759f817..3ba83986f 100755
--- a/view/tpl/admin_plugins.tpl
+++ b/view/tpl/admin_plugins.tpl
@@ -34,7 +34,7 @@
</div>
</div>
-
+{{$newRepoModal}}
<script>
function adminPluginsAddRepo() {
var repoURL = $('#id_repoURL').val();
@@ -44,16 +44,13 @@
function(response) {
$('#chat-rotator').spin(false);
if (response.success) {
- $('#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>');
+ var modalBody = $('#generic-modal-body-{{$newRepoModalID}}');
+ modalBody.html('<div>'+response.repo.readme+'</div>');
+ modalBody.append('<h2>Repo Info</h2><p>Message: ' + response.message + '</p>');
+ modalBody.append('<h4>Branches</h4><p>'+JSON.stringify(response.repo.branches)+'</p>');
+ modalBody.append('<h4>Remotes</h4><p>'+JSON.stringify(response.repo.remote)+'</p>');
+ $('.modal-dialog').width('80%');
+ $('#generic-modal-{{$newRepoModalID}}').modal();
} else {
window.console.log('Error adding repo :' + response['message']);
}