1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

Add Dockerfile view builder

This commit is contained in:
Michael Crosby 2013-06-18 16:21:27 -09:00
parent a7e92093c2
commit 7b7bb46844
7 changed files with 40 additions and 33 deletions

View file

@ -165,12 +165,16 @@ function ImagesController($scope, Image) {
$('#response').hide();
$scope.alertClass = 'block';
$scope.showBuilder = function() {
$('#build-modal').modal('show');
};
Image.query({}, function(d) {
$scope.images = d;
}, function (e) {
console.log(e);
setFailedResponse($scope, e.data, '#response');
});
});
}
// Controller for a single image and actions on that image
@ -238,10 +242,6 @@ function StartContainerController($scope, $routeParams, $location, Container) {
};
$scope.commandPlaceholder = '["/bin/echo", "Hello world"]';
$scope.close = function() {
$('#create-modal').modal('hide');
};
$scope.create = function() {
$scope.response = '';
var cmds = null;
@ -279,7 +279,12 @@ function StartContainerController($scope, $routeParams, $location, Container) {
}
function BuilderController($scope, Image) {
$('#response').hide();
$scope.template = '/partials/builder.html';
ace.config.set('basePath', '/lib/ace-builds/src-noconflict/');
$scope.build = function() {
};
}
function setSuccessfulResponse($scope, msg, msgId) {