1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-30 10:49:40 +02:00

Move masthead to its own submodule.

This commit is contained in:
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 -->