{{define "body" -}}
<h2>Networks</h2>

<p>
  <a href="/admin/network/create/">Create</a>
</p>

{{if .Networks -}}
<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Network</th>
    </tr>
  </thead>
  <tbody>
  {{range .Networks -}}
  <tr>
    <td>
      <a href="/admin/network/view/?NetworkID={{.NetworkID}}">
        {{.Name}}
      </a>
    </td>
    <td>{{ipToString .Network}}</td>
  </tr>
  </tbody>
  {{- end}}
</table>
{{- else}}
<p>No networks.</p>
{{- end}}

<h3>Settings</h3>

<ul>
  <li><a href="/admin/password/edit/">Password</a></li>
</ul>
{{- end}}
