feat(engine-details): add host-details component

pull/2255/head
Chaim Lando 2018-09-05 12:23:53 +03:00
parent d612ec9cee
commit 1f16eb446b
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,4 @@
angular.module('portainer.docker')
.controller('HostDetailsPanelController', [function HostDetailsPanelController(){
}]);

View File

@ -0,0 +1,45 @@
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<rd-widget>
<rd-widget-header icon="fa-code" title-text="Host Details"></rd-widget-header>
<rd-widget-body classes="no-padding">
<table class="table">
<tbody>
<tr>
<td>Hostname</td>
<td>{{ $ctrl.host.name }}</td>
</tr>
<tr>
<td>OS Information</td>
<td>{{ $ctrl.host.os.type }} {{$ctrl.host.os.arch}} {{$ctrl.host.os.name}}</td>
</tr>
<tr>
<td>Kernel Version</td>
<td>{{ $ctrl.host.kernelVersion }}</td>
</tr>
<tr>
<td>Total CPU</td>
<td>{{ $ctrl.host.totalCPU }}</td>
</tr>
<tr>
<td>Total memory</td>
<td>{{ $ctrl.host.totalMemory }}</td>
</tr>
<tr ng-if="$ctrl.isAgent">
<td>Physical device information</td>
<td>{{ $ctrl.host.physicalDeviceInfo }}</td>
</tr>
<tr ng-if="$ctrl.isAgent">
<td>Installed PCI devices</td>
<td>{{ $ctrl.host.pciDevices }}</td>
</tr>
<tr ng-if="$ctrl.isAgent">
<td>Physical disk</td>
<td>{{ $ctrl.host.physicalDisk }}</td>
</tr>
</tbody>
</table>
</rd-widget-body>
</rd-widget>
</div>
</div>

View File

@ -0,0 +1,8 @@
angular.module('portainer.docker').component('hostDetailsPanel', {
templateUrl:
'app/docker/components/host-view-panels/host-details-panel/host-details-panel.html',
controller: 'HostDetailsPanelController',
bindings: {
host: '<'
}
});