mirror of https://github.com/portainer/portainer
Move masthead to its own submodule.
parent
a9a36323eb
commit
07183e20f1
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters'])
|
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead'])
|
||||||
.config(['$routeProvider', function ($routeProvider) {
|
.config(['$routeProvider', function ($routeProvider) {
|
||||||
$routeProvider.when('/', {templateUrl: 'partials/dashboard.html', controller: 'DashboardController'});
|
$routeProvider.when('/', {templateUrl: 'partials/dashboard.html', controller: 'DashboardController'});
|
||||||
$routeProvider.when('/containers/', {templateUrl: 'partials/containers.html', controller: 'ContainersController'});
|
$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) {
|
function newLineChart(id, data, getkey) {
|
||||||
var chart = getChart(id);
|
var chart = getChart(id);
|
||||||
var map = {};
|
var map = {};
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
<script src="app/services.js"></script>
|
<script src="app/services.js"></script>
|
||||||
<script src="app/filters.js"></script>
|
<script src="app/filters.js"></script>
|
||||||
<script src="app/controllers.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>
|
<script src="app/viewmodel.js"></script>
|
||||||
|
|
||||||
<!-- Fav and touch icons -->
|
<!-- Fav and touch icons -->
|
||||||
|
|
Loading…
Reference in New Issue