Skip to content
Permalink
Browse files

Show ip address field only if it available

  • Loading branch information
subuk committed Sep 1, 2019
1 parent 36b06d7 commit b75bf33eff18b7e08e8425a6e484f92537683ab5
Showing with 2 additions and 0 deletions.
  1. +2 −0 templates/virtual-machine/detail.html
@@ -99,7 +99,9 @@ <h5 class="card-title">Interface {{ .Type }} {{ .Model }}</h5>
{{ if gt .AccessVlan 0 }}
Vlan: {{ .AccessVlan }}<br>
{{ end }}
{{ if gt (len .IpAddressList) 0 }}
IP: {{ .IpAddressList | Join " " }}
{{ end }}
</p>
<form method="post" action="{{ Url "virtual-machine-detach-interface" "id" $.Vm.Id }}">{{ CSRFField $.Request }}
<input type="hidden" name="Mac" value="{{ .Mac }}">

0 comments on commit b75bf33

Please sign in to comment.
You can’t perform that action at this time.