Fix service list in host detail page and add missing ';'

Change-Id: I694c20a9912367215a8b26d23e4e2bad630747f7
This commit is contained in:
Thibault Cohen 2015-06-23 13:59:25 -04:00
parent f15a6ccf93
commit dc9a27d9aa
2 changed files with 8 additions and 8 deletions

View File

@ -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>
<table class="data-table">
<thead>
@ -10,10 +10,10 @@
</thead>
<tbody>
<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>{{service.acknowledged}}</td>
<td><bansho-service-state-icon state="service.state"></bansho-service-state-icon>{{service.state}}</td>
</tr>
<td><a href="#/view?view=service&host_name={{service.host_name}}&description={{service.service_description}}">{{service.service_description}}</a>
<td>{{service.acknowledged}}</td>
<td><bansho-service-state-icon state="service.state"></bansho-service-state-icon>{{service.state}}</td>
</tr>
</tbody>
</table>
</div>

View File

@ -10,10 +10,10 @@ angular.module('bansho.service.graphs', [])
angular.forEach(metric_names, function (metric) {
var metricName = metric.metric_name.substr(7);
$scope.iframeUrls[metricName] = iframeUrl.getIFrameUrl(metric.metric_name, service.host_name, service.service_description);
})
})
});
});
}
})
});
}])
.directive('banshoServiceGraphs', ['iframeUrl', function (iframeUrl) {