Skip to content

Commit

Permalink
link the number of containers running for a profile to the filtered c…
Browse files Browse the repository at this point in the history
…ontainer view so we can quickly just view the containers for a profile
  • Loading branch information
jstrachan committed Dec 4, 2013
1 parent 93cfbc1 commit 1b7c142
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -22,11 +22,13 @@ <h2 class="inline" title="Profile: {{row.id}}">{{row.id}}</h2>

<div class="row-fluid">
<div class="pull-left">
<ng-pluralize count="row.containerCount"
when="{'0': 'Not assigned to any containers',
'one': 'Assigned to 1 container',
'other': 'Assigned to {} containers'}">
</ng-pluralize>
<a href="#/fabric/containers?q={{profileId}}" title="View containers running this profile">
<ng-pluralize count="row.containerCount"
when="{'0': 'Not assigned to any containers',
'one': 'Assigned to 1 container',
'other': 'Assigned to {} containers'}">
</ng-pluralize>
</a>
</div>
</div>

Expand Down
2 changes: 0 additions & 2 deletions hawtio-web/src/main/webapp/app/fabric/js/containers.ts
Expand Up @@ -10,8 +10,6 @@ module Fabric {
// only reload the page if certain search parameters change
Core.reloadWhenParametersChange($route, $scope, $location);

$scope.containerIdFilter = '';

$scope.addToDashboardLink = () => {
var href = "#/fabric/containers";
var title = "Containers";
Expand Down

0 comments on commit 1b7c142

Please sign in to comment.