mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
Job detail page re-refactor
Job host events dialog.
This commit is contained in:
@@ -1006,6 +1006,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
|||||||
|
|
||||||
scope.hostEventsViewer = function(id, name) {
|
scope.hostEventsViewer = function(id, name) {
|
||||||
HostEventsViewer({
|
HostEventsViewer({
|
||||||
|
scope: scope,
|
||||||
id: id,
|
id: id,
|
||||||
name: name,
|
name: name,
|
||||||
url: scope.job.related.job_events + '?event__icontains=runner'
|
url: scope.job.related.job_events + '?event__icontains=runner'
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities'])
|
|||||||
return function(params) {
|
return function(params) {
|
||||||
var parent_scope = params.scope,
|
var parent_scope = params.scope,
|
||||||
url = params.url,
|
url = params.url,
|
||||||
|
host_id = params.id,
|
||||||
|
host_name = params.name,
|
||||||
title = params.title, //optional
|
title = params.title, //optional
|
||||||
scope = parent_scope.$new(true);
|
scope = parent_scope.$new(true);
|
||||||
|
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
<div id="hosts-summary-table" class="table-detail" lr-infinite-scroll="hostSummariesScrollDown" scroll-threshold="10" time-threshold="500">
|
<div id="hosts-summary-table" class="table-detail" lr-infinite-scroll="hostSummariesScrollDown" scroll-threshold="10" time-threshold="500">
|
||||||
<div class="row" ng-repeat="host in summaryList = (hosts | filter:{ status : searchAllStatus}) track by $index" id="{{ host.id }}">
|
<div class="row" ng-repeat="host in summaryList = (hosts | filter:{ status : searchAllStatus}) track by $index" id="{{ host.id }}">
|
||||||
<div class="name col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
<div class="name col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||||
<a ng-click="hostEventsViewer(host.id, host.name)" target="_blank" aw-tool-tip="View all events for this host"
|
<a href="" ng-click="hostEventsViewer(host.id, host.name)" aw-tool-tip="View all events for this host"
|
||||||
data-placement="top">{{ host.name }}</a>
|
data-placement="top">{{ host.name }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 badge-column">
|
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 badge-column">
|
||||||
|
|||||||
Reference in New Issue
Block a user