mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
LogViewer wired into home/hosts page.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,6 +7,8 @@ awx/public/media
|
|||||||
awx/public/static
|
awx/public/static
|
||||||
awx/ui/static/js/awx.min.js
|
awx/ui/static/js/awx.min.js
|
||||||
awx/ui/static/css/awx.min.css
|
awx/ui/static/css/awx.min.css
|
||||||
|
awx/tower_warnings.log
|
||||||
|
celerybeat-schedule
|
||||||
env/*
|
env/*
|
||||||
node_modules/**
|
node_modules/**
|
||||||
build
|
build
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ HomeGroups.$inject = ['$scope', '$filter', '$compile', '$location', '$routeParam
|
|||||||
|
|
||||||
|
|
||||||
function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope,
|
function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList, ProcessErrors, LoadBreadCrumbs, ReturnToCaller, ClearScope,
|
||||||
GetBasePath, SearchInit, PaginateInit, FormatDate, SetStatus, ToggleHostEnabled, HostsEdit, Stream, Find, ShowJobSummary) {
|
GetBasePath, SearchInit, PaginateInit, FormatDate, SetStatus, ToggleHostEnabled, HostsEdit, Stream, Find, ShowJobSummary, ViewJob) {
|
||||||
|
|
||||||
ClearScope('htmlTemplate'); //Garbage collection. Don't leave behind any listeners/watchers from the prior
|
ClearScope('htmlTemplate'); //Garbage collection. Don't leave behind any listeners/watchers from the prior
|
||||||
//scope.
|
//scope.
|
||||||
@@ -503,8 +503,6 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
|||||||
list = HomeHostList,
|
list = HomeHostList,
|
||||||
defaultUrl = GetBasePath('hosts');
|
defaultUrl = GetBasePath('hosts');
|
||||||
|
|
||||||
generator.inject(list, { mode: 'edit', scope: $scope });
|
|
||||||
|
|
||||||
if ($scope.removePostRefresh) {
|
if ($scope.removePostRefresh) {
|
||||||
$scope.removePostRefresh();
|
$scope.removePostRefresh();
|
||||||
}
|
}
|
||||||
@@ -517,6 +515,9 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
|||||||
host: $scope.hosts[i]
|
host: $scope.hosts[i]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
generator.inject(list, { mode: 'edit', scope: $scope });
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
SearchInit({
|
SearchInit({
|
||||||
@@ -560,6 +561,10 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
|||||||
|
|
||||||
LoadBreadCrumbs();
|
LoadBreadCrumbs();
|
||||||
|
|
||||||
|
$scope.viewJob = function(id) {
|
||||||
|
ViewJob({ scope: $scope, id: id });
|
||||||
|
};
|
||||||
|
|
||||||
$scope.showActivity = function () {
|
$scope.showActivity = function () {
|
||||||
Stream({
|
Stream({
|
||||||
scope: $scope
|
scope: $scope
|
||||||
@@ -602,5 +607,5 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
|||||||
|
|
||||||
HomeHosts.$inject = ['$scope', '$location', '$routeParams', 'HomeHostList', 'GenerateList', 'ProcessErrors', 'LoadBreadCrumbs', 'ReturnToCaller',
|
HomeHosts.$inject = ['$scope', '$location', '$routeParams', 'HomeHostList', 'GenerateList', 'ProcessErrors', 'LoadBreadCrumbs', 'ReturnToCaller',
|
||||||
'ClearScope', 'GetBasePath', 'SearchInit', 'PaginateInit', 'FormatDate', 'SetStatus', 'ToggleHostEnabled', 'HostsEdit', 'Stream',
|
'ClearScope', 'GetBasePath', 'SearchInit', 'PaginateInit', 'FormatDate', 'SetStatus', 'ToggleHostEnabled', 'HostsEdit', 'Stream',
|
||||||
'Find', 'ShowJobSummary'
|
'Find', 'ShowJobSummary', 'ViewJob'
|
||||||
];
|
];
|
||||||
@@ -27,7 +27,10 @@ angular.module('HomeHostListDefinition', [])
|
|||||||
iconOnly: true,
|
iconOnly: true,
|
||||||
icon: "{{ 'icon-job-' + host.active_failures }}",
|
icon: "{{ 'icon-job-' + host.active_failures }}",
|
||||||
awToolTip: "{{ host.badgeToolTip }}",
|
awToolTip: "{{ host.badgeToolTip }}",
|
||||||
|
dataTitle: "{{ host.job_status_title }}",
|
||||||
awTipPlacement: "top",
|
awTipPlacement: "top",
|
||||||
|
dataPlacement: "right",
|
||||||
|
awPopOver: "{{ host.job_status_html }}",
|
||||||
ngClick:"bob",
|
ngClick:"bob",
|
||||||
columnClass: "col-md-1 col-sm-2 col-xs-3",
|
columnClass: "col-md-1 col-sm-2 col-xs-3",
|
||||||
searchable: false,
|
searchable: false,
|
||||||
@@ -37,7 +40,7 @@ angular.module('HomeHostListDefinition', [])
|
|||||||
key: true,
|
key: true,
|
||||||
label: 'Name',
|
label: 'Name',
|
||||||
columnClass: 'col-lg-4 col-md3 col-sm-3 col-xs-7 ellipsis',
|
columnClass: 'col-lg-4 col-md3 col-sm-3 col-xs-7 ellipsis',
|
||||||
ngClick: "editHost(host.id, host.name)"
|
ngClick: "editHost(host.id)"
|
||||||
},
|
},
|
||||||
inventory_name: {
|
inventory_name: {
|
||||||
label: 'Inventory',
|
label: 'Inventory',
|
||||||
|
|||||||
Reference in New Issue
Block a user