2018-09-12 07:24:02 +00:00
|
|
|
<div class="ui-g-12">
|
2018-09-12 08:33:00 +00:00
|
|
|
<div class="ui-g detail-img">
|
2018-09-12 07:07:11 +00:00
|
|
|
<!-- <svg width="200" height="200" viewBox="20 40 140 100">
|
2018-09-12 10:10:26 +00:00
|
|
|
<image x="-40" y="-20" width="260" height="260" preserveAspectRatio="xMidYMid slice" xlink:href="../../assets/image/logo/logo_tomcat.svg" />
|
|
|
|
</svg> -->
|
2018-09-12 08:33:00 +00:00
|
|
|
<div class="svg-div">
|
2018-09-17 11:29:08 +00:00
|
|
|
<!-- <svg width="140" height="140" viewBox="15 35 140 100">
|
|
|
|
<image x="-50" y="-40" width="260" height="260" preserveAspectRatio="xMidYMid slice" attr.xlink:href="../../assets/image/icon/icon_{{host.hostType | lowercase}}.svg" />
|
|
|
|
<image *ngIf="host.hostType === 'HOST'" x="-50" y="-40" width="260" height="260" preserveAspectRatio="xMidYMid slice"
|
|
|
|
attr.xlink:href="../../assets/image/logo/logo_{{host.osType | lowercase}}.svg"></image>
|
|
|
|
</svg> -->
|
|
|
|
<svg width="140" height="140" viewBox="20 10 140 140">
|
2018-09-17 13:51:10 +00:00
|
|
|
<image x="-10" y="-5" width="200" height="200" preserveAspectRatio="xMidYMid slice" attr.xlink:href="../../assets/image/icon/icon_{{host.hostType | lowercase}}.svg" />
|
|
|
|
<image x="-10" y="-5" width="200" height="200" preserveAspectRatio="xMidYMid slice" attr.xlink:href="../../assets/image/logo/logo_{{host.osType | lowercase}}.svg" />
|
2018-09-12 08:33:00 +00:00
|
|
|
</svg>
|
|
|
|
</div>
|
2018-09-12 07:07:11 +00:00
|
|
|
<h3>{{host.name}} <span>{{host.address}}</span></h3>
|
2018-09-12 07:24:02 +00:00
|
|
|
</div>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<p-tabView class="detail-content">
|
2018-09-13 11:01:01 +00:00
|
|
|
<button type="button" pButton label="Ping" (click)="ping()" class="ui-button-secondary ui-pingbn-position"></button>
|
2018-09-12 07:24:02 +00:00
|
|
|
<p-tabPanel header="General">
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<ul class="key-value">
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<li *ngIf="host.address">
|
|
|
|
IP Address
|
|
|
|
<span class="meta-value">{{host.address}}</span>
|
|
|
|
</li>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<li *ngIf="host.deviceType">
|
|
|
|
Type
|
|
|
|
<span class="meta-value">{{host.deviceType}}</span>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="host.deviceVendor">
|
|
|
|
Vendor
|
|
|
|
<span class="meta-value">{{host.deviceVendor}}</span>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="host.model">
|
|
|
|
Model
|
|
|
|
<span class="meta-value">{{host.model}}</span>
|
|
|
|
</li>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<li *ngIf="host.osType">
|
|
|
|
OS
|
|
|
|
<span class="meta-value">{{host.osType}}</span>
|
|
|
|
</li>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<li *ngIf="host.mac">
|
|
|
|
Mac Address
|
|
|
|
<span class="meta-value">{{host.mac}}</span>
|
|
|
|
</li>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
</ul>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
</p-tabPanel>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<p-tabPanel header="Metadata" *ngIf="host.meta">
|
2018-09-12 07:52:01 +00:00
|
|
|
<ul class="detail-content-meta-title">
|
2018-09-12 07:24:02 +00:00
|
|
|
<li *ngFor="let key of host.meta | objectKeys">
|
|
|
|
{{key | stringPrettify}}
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<ul class="key-value">
|
|
|
|
<li *ngFor="let skey of host.meta[key] | objectKeys">
|
|
|
|
{{skey | stringPrettify}}
|
|
|
|
<span class="meta-value">{{host.meta[key][skey]}}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</p-tabPanel>
|
2018-09-12 07:07:11 +00:00
|
|
|
|
2018-09-12 07:24:02 +00:00
|
|
|
<p-tabPanel header="Ports" *ngIf="host.portList">
|
2018-09-12 11:18:38 +00:00
|
|
|
<ul class="key-value">
|
2018-09-13 05:47:22 +00:00
|
|
|
<li *ngFor="let port of host.portList | sort: 'portNumber'">
|
2018-09-12 11:18:38 +00:00
|
|
|
<span class="meta-value">{{port.portNumber}} ({{port.metaPortType.key}})</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-09-12 07:24:02 +00:00
|
|
|
</p-tabPanel>
|
2018-09-12 11:18:38 +00:00
|
|
|
</p-tabView>
|
|
|
|
</div>
|