view_nodes.erb 824 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <h2 class="title"><br><br><center>Node Information</center><br><br></h2>
  2. <div class="container">
  3. <% if nodes[:errors].length > 0 %>
  4. <% nodes[:errors].each do |e| %>
  5. <br><%= e %>
  6. <% end %>
  7. <% else %>
  8. <table class="table table-hover">
  9. <tbody>
  10. <tr> <th>Name</th>
  11. <th>IP</th>
  12. <th>Public IP</th>
  13. <th>Account</th>
  14. <th>Size</th>
  15. <th>Subnet</th>
  16. <th>AZ</th>
  17. <th>VPC</th>
  18. <th>AMI</th>
  19. <th>State</th>
  20. <th>Security Group</th>
  21. <tr>
  22. <% nodes[:nodes].each do |n| %>
  23. <tr>
  24. <td><%= n['Name'] %></td>
  25. <td><%= n['IP'] %></td>
  26. <td><%= n['Public_IP'] %></td>
  27. <td><%= n['Account'] %></td>
  28. <td><%= n['Size'] %></td>
  29. <td><%= n['Subnet'] %></td>
  30. <td><%= n['AZ'] %></td>
  31. <td><%= n['VPC'] %></td>
  32. <td><%= n['AMI'] %></td>
  33. <td><%= n['State'] %></td>
  34. <td><%= n['SecurityGroup'] %></td>
  35. </tr>
  36. <% end %>
  37. </tbody>
  38. </table>
  39. <% end %>
  40. </div>