Moved builder to its own submodule

pull/2/head
Kevan Ahlquist 2014-11-28 22:24:55 -06:00
parent 306d2db03e
commit e3eb37ba56
5 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings'])
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
$routeProvider.when('/containers/', {templateUrl: 'app/components/containers/containers.html', controller: 'ContainersController'});

View File

@ -0,0 +1,5 @@
angular.module('builder', [])
.controller('BuilderController', ['$scope', 'Dockerfile', 'Messages',
function($scope, Dockerfile, Messages) {
$scope.template = 'partials/builder.html';
}]);

View File

@ -47,10 +47,6 @@ function getChart(id) {
return new Chart(ctx);
}
function BuilderController($scope, Dockerfile, Messages) {
$scope.template = 'partials/builder.html';
}
function failedRequestHandler(e, Messages) {
Messages.send({class: 'text-error', data: e.data});
}

View File

@ -47,6 +47,7 @@
<script src="app/components/images/imagesController.js"></script>
<script src="app/components/sidebar/sidebarController.js"></script>
<script src="app/components/settings/settingsController.js"></script>
<script src="app/components/builder/builderController.js"></script>
<script src="app/viewmodel.js"></script>
<!-- Fav and touch icons -->