Skip to content

Commit

Permalink
Merge pull request sensu#14 from PTC-Global/master
Browse files Browse the repository at this point in the history
Add links for aggregates
  • Loading branch information
palourde authored Feb 27, 2018
2 parents 53fa564 + 1377121 commit 6314d14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions partials/views/aggregate.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<div class="col-xs-8">
<span>
<div ng-repeat="client in check.clients">
{{client}}
<span ng-click="go('/client/'+dc+'/'+client+'?check='+check.name)">{{client}}</span>
</div>
</span>
</div>
Expand All @@ -145,7 +145,7 @@
<div class="col-xs-8">
<span>
<div ng-repeat="check in client.checks">
{{check}}
<span ng-click="go('/client/'+dc+'/'+client.name+'?check='+check)">{{check}}</span>
</div>
</span>
</div>
Expand Down Expand Up @@ -176,7 +176,7 @@
<div class="col-xs-8">
<span>
<div ng-repeat="client in summary.clients">
{{client}}
<span ng-click="go('/client/'+dc+'/'+client+'?check='+result.check)">{{client}}</span>
</div>
</span>
</div>
Expand Down
10 changes: 9 additions & 1 deletion partials/views/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@
<div class="col-xs-4">
<span class="key pull-right">{{key}}</span>
</div>
<div class="col-xs-8">
<div ng-if="key == 'aggregate'" class="col-xs-8">
<a class="value" ng-href="#/aggregates/{{check.dc}}/{{value}}" ng-bind-html="value | highlight"></a>
</div>
<div ng-if="key == 'aggregates'" class="col-xs-8">
<div ng-repeat="aggregate in value.split(', ')">
<a class="value" ng-href="#/aggregates/{{check.dc}}/{{aggregate}}" ng-bind-html="aggregate | highlight"></a>
</div>
</div>
<div ng-if="key != 'aggregate' && key != 'aggregates'" class="col-xs-8">
<span class="value" ng-class="isUrl(value) ? 'ellipsis' : ''" ng-bind-html="value | highlight"></span>
</div>
</div>
Expand Down

0 comments on commit 6314d14

Please sign in to comment.