mirror of https://github.com/portainer/portainer
Move masthead to its own submodule.
parent
a9a36323eb
commit
07183e20f1
|
@ -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'});
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
angular.module('masthead', [])
|
||||
.controller('MastheadController', function($scope) {
|
||||
$scope.template = 'app/components/masthead/masthead.html';
|
||||
});
|
|
@ -1,8 +1,3 @@
|
|||
|
||||
function MastheadController($scope) {
|
||||
$scope.template = 'partials/masthead.html';
|
||||
}
|
||||
|
||||
function newLineChart(id, data, getkey) {
|
||||
var chart = getChart(id);
|
||||
var map = {};
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Reference in New Issue