diff --git a/awx/ui/static/js/app.js b/awx/ui/static/js/app.js index 2ee0160c33..e5695b7b82 100644 --- a/awx/ui/static/js/app.js +++ b/awx/ui/static/js/app.js @@ -32,6 +32,7 @@ import {PortalController} from 'tower/controllers/Portal'; import dataServices from 'tower/services/_data-services'; import dashboardGraphs from 'tower/directives/_dashboard-graphs'; +import systemTracking from 'tower/system-tracking/main'; import routeExtensions from 'tower/shared/route-extensions/main'; diff --git a/awx/ui/static/js/system-tracking/main.js b/awx/ui/static/js/system-tracking/main.js new file mode 100644 index 0000000000..2c92bd2e0f --- /dev/null +++ b/awx/ui/static/js/system-tracking/main.js @@ -0,0 +1,9 @@ +import route from './system-tracking.route'; + +export default + angular.module('systemTracking', []) + .config(['$routeProvider', function($routeProvider) { + var url = route.route; + delete route.route; + $routeProvider.when(url, route) + }]); diff --git a/awx/ui/static/js/system-tracking/system-tracking.controller.js b/awx/ui/static/js/system-tracking/system-tracking.controller.js new file mode 100644 index 0000000000..9a1c1de4c6 --- /dev/null +++ b/awx/ui/static/js/system-tracking/system-tracking.controller.js @@ -0,0 +1,3 @@ +export default ['$scope', function($scope) { + $scope.viewType = 'host2host'; +}] diff --git a/awx/ui/static/js/system-tracking/system-tracking.partial.html b/awx/ui/static/js/system-tracking/system-tracking.partial.html new file mode 100644 index 0000000000..2895c4bea1 --- /dev/null +++ b/awx/ui/static/js/system-tracking/system-tracking.partial.html @@ -0,0 +1 @@ +You are in {{viewType}} mode diff --git a/awx/ui/static/js/system-tracking/system-tracking.route.js b/awx/ui/static/js/system-tracking/system-tracking.route.js new file mode 100644 index 0000000000..9951217165 --- /dev/null +++ b/awx/ui/static/js/system-tracking/system-tracking.route.js @@ -0,0 +1,7 @@ +import controller from './system-tracking.controller'; + +export default { + route: '/inventories/:id/system-tracking/:filters', + controller: controller, + templateUrl: '/static/js/system-tracking/system-tracking.partial.html' +};