mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Setup initial system tracking struture
This commit is contained in:
@@ -32,6 +32,7 @@ import {PortalController} from 'tower/controllers/Portal';
|
|||||||
|
|
||||||
import dataServices from 'tower/services/_data-services';
|
import dataServices from 'tower/services/_data-services';
|
||||||
import dashboardGraphs from 'tower/directives/_dashboard-graphs';
|
import dashboardGraphs from 'tower/directives/_dashboard-graphs';
|
||||||
|
import systemTracking from 'tower/system-tracking/main';
|
||||||
|
|
||||||
import routeExtensions from 'tower/shared/route-extensions/main';
|
import routeExtensions from 'tower/shared/route-extensions/main';
|
||||||
|
|
||||||
|
|||||||
9
awx/ui/static/js/system-tracking/main.js
Normal file
9
awx/ui/static/js/system-tracking/main.js
Normal file
@@ -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)
|
||||||
|
}]);
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export default ['$scope', function($scope) {
|
||||||
|
$scope.viewType = 'host2host';
|
||||||
|
}]
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
You are in {{viewType}} mode
|
||||||
@@ -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'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user