Move masthead to its own submodule.

pull/2/head
Kevan Ahlquist 2014-11-12 10:45:13 -06:00 committed by Kevan Ahlquist
parent a9a36323eb
commit 07183e20f1
5 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters'])
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/', {templateUrl: 'partials/dashboard.html', controller: 'DashboardController'});
$routeProvider.when('/containers/', {templateUrl: 'partials/containers.html', controller: 'ContainersController'});

View File

@ -0,0 +1,4 @@
angular.module('masthead', [])
.controller('MastheadController', function($scope) {
$scope.template = 'app/components/masthead/masthead.html';
});

View File

@ -1,8 +1,3 @@
function MastheadController($scope) {
$scope.template = 'partials/masthead.html';
}
function newLineChart(id, data, getkey) {
var chart = getChart(id);
var map = {};

View File

@ -36,6 +36,8 @@
<script src="app/services.js"></script>
<script src="app/filters.js"></script>
<script src="app/controllers.js"></script>
<!-- TODO: Add minification build step -->
<script src="app/components/masthead/mastheadController.js"></script>
<script src="app/viewmodel.js"></script>
<!-- Fav and touch icons -->