Adapted view for multi-groups

This commit is contained in:
Jesús Ángel 2018-10-01 09:15:13 +02:00
parent eb26aa6b54
commit 9079711cd3
2 changed files with 18 additions and 6 deletions

View File

@ -13,9 +13,6 @@
<div class="wz-text-truncatable" flex>
IP: <span class="wz-text-bold">{{ agent.ip }}</span>
</div>
<div class="wz-text-truncatable" flex ng-if="agent.group">
Group: <span ng-repeat="group in agent.group" class="wz-text-bold wz-text-link" ng-click="goGroups(agent,$index)">{{ group }}&nbsp;</span>
</div>
<div class="wz-text-truncatable" flex ng-if="agent.version">
Version: <span class="wz-text-bold">{{ agent.version }}</span>
</div>
@ -28,6 +25,15 @@
</md-card-content>
</md-card>
</div>
<div layout="row" layout-align="start center">
<md-card flex class="wz-metric-color wz-md-card">
<md-card-content layout="row" class="wz-padding-metric">
<div class="wz-text-truncatable" flex ng-if="agent.group">
Groups: <span ng-repeat="group in agent.group" class="wz-text-bold wz-text-link" ng-click="goGroups(agent,$index)">{{ group }}&nbsp;</span>
</div>
</md-card-content>
</md-card>
</div>
<div layout="row" layout-align="start center">
<md-card flex class="wz-metric-color wz-md-card">
<md-card-content layout="row" class="wz-padding-metric">

View File

@ -19,9 +19,6 @@
<div class="wz-text-truncatable" flex>
IP: <span class="wz-text-bold">{{ agent.ip }}</span>
</div>
<div class="wz-text-truncatable" flex ng-if="agent.group">
Group: <span ng-repeat="group in agent.group" class="wz-text-bold wz-text-link" ng-click="goGroups(agent,$index)">{{ group }}&nbsp;</span>
</div>
<div class="wz-text-truncatable" flex ng-if="agent.version">
Version: <span class="wz-text-bold">{{ agent.version }}</span>
</div>
@ -34,6 +31,15 @@
</md-card-content>
</md-card>
</div>
<div layout="row" layout-padding class="wz-padding-top-0 wz-padding-bottom-0">
<md-card flex class="wz-metric-color wz-md-card wz-no-padding">
<md-card-content layout="row" class="wz-padding-metric">
<div class="wz-text-truncatable" flex ng-if="agent.group">
Groups: <span ng-repeat="group in agent.group" class="wz-text-bold wz-text-link" ng-click="goGroups(agent,$index)">{{ group }}&nbsp;</span>
</div>
</md-card-content>
</md-card>
</div>
<div layout="row" layout-padding class="wz-padding-top-0 wz-padding-bottom-0">
<md-card flex class="wz-metric-color wz-md-card wz-no-padding">
<md-card-content layout="row" class="wz-padding-metric">