Job detail page re-refactor

Job host events dialog.
This commit is contained in:
Chris Houseknecht 2014-07-08 00:57:07 -04:00
parent 125be34b43
commit d7c84ce54a
3 changed files with 4 additions and 1 deletions

View File

@ -1006,6 +1006,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
scope.hostEventsViewer = function(id, name) {
HostEventsViewer({
scope: scope,
id: id,
name: name,
url: scope.job.related.job_events + '?event__icontains=runner'

View File

@ -16,6 +16,8 @@ angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities'])
return function(params) {
var parent_scope = params.scope,
url = params.url,
host_id = params.id,
host_name = params.name,
title = params.title, //optional
scope = parent_scope.$new(true);

View File

@ -226,7 +226,7 @@
<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="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>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 badge-column">