{{define "device_header"}}
<div class="card device-context">
  <div class="section-title">
    <div class="device-context-head">
      <div class="device-context-icon">{{icon "device"}}</div>
      <div>
        <div class="crumb">当前设备</div>
        <h2>{{displayDeviceName .Device .ConfigStatus}}</h2>
        <div class="muted small mono">
          {{if displayDeviceTechnicalName .Device}}{{displayDeviceTechnicalName .Device}} · {{end}}{{.Device.DeviceID}} · {{.Device.IP}}:{{.Device.AgentPort}}
        </div>
      </div>
    </div>
  </div>
</div>
{{end}}

{{define "device_nav"}}
{{template "device_header" .}}
{{end}}
