mirror of https://github.com/portainer/portainer
feat(engine-details): add host-details component
parent
d612ec9cee
commit
1f16eb446b
|
@ -0,0 +1,4 @@
|
|||
angular.module('portainer.docker')
|
||||
.controller('HostDetailsPanelController', [function HostDetailsPanelController(){
|
||||
|
||||
}]);
|
|
@ -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>
|
|
@ -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: '<'
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue