Fix service list in host detail page and add missing ';'
Change-Id: I694c20a9912367215a8b26d23e4e2bad630747f7
This commit is contained in:
parent
f15a6ccf93
commit
dc9a27d9aa
@ -1,4 +1,4 @@
|
|||||||
<div ng-hide="services.length === 0" class="subcomponent__live">
|
<div ng-show="host.services.length >= 1" class="subcomponent__live">
|
||||||
<h2>Services</h2>
|
<h2>Services</h2>
|
||||||
<table class="data-table">
|
<table class="data-table">
|
||||||
<thead>
|
<thead>
|
||||||
@ -10,10 +10,10 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="service in host.services">
|
<tr ng-repeat="service in host.services">
|
||||||
<td><a href="#/view?view=service&host_name={{service.host_name}}&description={{service.service_description}}">{{service.service_description}}</a>
|
<td><a href="#/view?view=service&host_name={{service.host_name}}&description={{service.service_description}}">{{service.service_description}}</a>
|
||||||
<td>{{service.acknowledged}}</td>
|
<td>{{service.acknowledged}}</td>
|
||||||
<td><bansho-service-state-icon state="service.state"></bansho-service-state-icon>{{service.state}}</td>
|
<td><bansho-service-state-icon state="service.state"></bansho-service-state-icon>{{service.state}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,10 +10,10 @@ angular.module('bansho.service.graphs', [])
|
|||||||
angular.forEach(metric_names, function (metric) {
|
angular.forEach(metric_names, function (metric) {
|
||||||
var metricName = metric.metric_name.substr(7);
|
var metricName = metric.metric_name.substr(7);
|
||||||
$scope.iframeUrls[metricName] = iframeUrl.getIFrameUrl(metric.metric_name, service.host_name, service.service_description);
|
$scope.iframeUrls[metricName] = iframeUrl.getIFrameUrl(metric.metric_name, service.host_name, service.service_description);
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.directive('banshoServiceGraphs', ['iframeUrl', function (iframeUrl) {
|
.directive('banshoServiceGraphs', ['iframeUrl', function (iframeUrl) {
|
||||||
|
Loading…
Reference in New Issue
Block a user