{{define "content"}}
{{$data := .Content}}
{{if $data.Nodes}}
<section>
  <div class="card border-0 shadow-sm">
    <div class="card-body">
    <div class="table-responsive">
    <table class="table table-hover align-middle mb-0">
      <thead><tr><th>Name</th><th>Group</th><th>Distro</th><th>IP</th><th>Uptime</th></tr></thead>
      <tbody>
      {{range $data.Nodes}}
        <tr><td>{{.Name}}</td><td>{{if .GroupName}}{{.GroupName}}{{end}}</td><td>{{.Distro}}</td><td>{{.IPAddress}}</td><td>{{uptime .UptimeSeconds}}</td></tr>
      {{end}}
      </tbody>
    </table>
    </div>
    </div>
  </div>
</section>
{{else}}
<section class="card border-0 shadow-sm">
  <div class="card-body py-5 text-center text-body-secondary">
    No nodes.
  </div>
</section>
{{end}}
{{end}}
