From 07183e20f1f78c362a309b1b76acca47352b4447 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Wed, 12 Nov 2014 10:45:13 -0600 Subject: [PATCH] Move masthead to its own submodule. --- app/app.js | 2 +- {partials => app/components/masthead}/masthead.html | 0 app/components/masthead/mastheadController.js | 4 ++++ app/controllers.js | 5 ----- index.html | 2 ++ 5 files changed, 7 insertions(+), 6 deletions(-) rename {partials => app/components/masthead}/masthead.html (100%) create mode 100644 app/components/masthead/mastheadController.js diff --git a/app/app.js b/app/app.js index fd2ec8608..10d2ce8ca 100644 --- a/app/app.js +++ b/app/app.js @@ -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'}); diff --git a/partials/masthead.html b/app/components/masthead/masthead.html similarity index 100% rename from partials/masthead.html rename to app/components/masthead/masthead.html diff --git a/app/components/masthead/mastheadController.js b/app/components/masthead/mastheadController.js new file mode 100644 index 000000000..f160ae6bc --- /dev/null +++ b/app/components/masthead/mastheadController.js @@ -0,0 +1,4 @@ +angular.module('masthead', []) +.controller('MastheadController', function($scope) { + $scope.template = 'app/components/masthead/masthead.html'; +}); diff --git a/app/controllers.js b/app/controllers.js index a01586ea5..28a04a3d9 100644 --- a/app/controllers.js +++ b/app/controllers.js @@ -1,8 +1,3 @@ - -function MastheadController($scope) { - $scope.template = 'partials/masthead.html'; -} - function newLineChart(id, data, getkey) { var chart = getChart(id); var map = {}; diff --git a/index.html b/index.html index d63b15561..7b3cb17b5 100644 --- a/index.html +++ b/index.html @@ -36,6 +36,8 @@ + +