This commit is contained in:
crusader 2018-09-12 23:03:26 +09:00
parent e67fffa799
commit 626d5d934f
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,9 @@
</svg> --> </svg> -->
<div class="svg-div"> <div class="svg-div">
<svg width="140" height="140" viewBox="15 35 140 100"> <svg width="140" height="140" viewBox="15 35 140 100">
<image x="-50" y="-40" width="260" height="260" preserveAspectRatio="xMidYMid slice" xlink:href="../../assets/image/icon/icon_router.svg" /> <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>
</div> </div>
<h3>{{host.name}} <span>{{host.address}}</span></h3> <h3>{{host.name}} <span>{{host.address}}</span></h3>

View File

@ -6,7 +6,8 @@
</svg> --> </svg> -->
<div class="svg-div"> <div class="svg-div">
<svg width="140" height="140" viewBox="15 35 140 100"> <svg width="140" height="140" viewBox="15 35 140 100">
<image x="-50" y="-40" width="260" height="260" preserveAspectRatio="xMidYMid slice" xlink:href="../../assets/image/icon/icon_router.svg" /> <image x="-50" y="-40" width="260" height="260" preserveAspectRatio="xMidYMid slice" attr.xlink:href="../../assets/image/icon/icon_{{service.serviceType | lowercase}}.svg" />
<image x="-50" y="-40" width="260" height="260" preserveAspectRatio="xMidYMid slice" attr.xlink:href="../../assets/image/logo/logo_{{service.key | lowercase}}.svg" />
</svg> </svg>
</div> </div>
<h3> <h3>