index.html.erb 639 Bytes
<p id="notice"><%= notice %></p>

<h1>Listing Lxd Hosts</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Uri</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @lxd_hosts.each do |lxd_host| %>
      <tr>
        <td><%= lxd_host.name %></td>
        <td><%= lxd_host.uri %></td>
        <td><%= link_to 'Show', lxd_host %></td>
        <td><%= link_to 'Edit', edit_lxd_host_path(lxd_host) %></td>
        <td><%= link_to 'Destroy', lxd_host, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Lxd host', new_lxd_host_path %>