% @nodes.each do |node| %>
Name | <%= node.name %> | |||||||||
Kommentar | <%= node.comment %> | |||||||||
Administrator | <%= node.person.email %> | <% end %>|||||||||
Interfaces | Name | IP | Netmask | Link | <% node.ip.each do |ip| %>||||||
<%= ip.name %> | <%= link_to ip.ip, "http://#{ip.ip}" %> | <% if ip.nets != nil %> <% if ip.nets.netmask != '255.255.255.255' %><%= ip.nets.netmask %> | <% else %><%= '255.255.0.0' %> | <% end %> <% else %><%= ip.net_id %> | <% end %><%= link_to "intern", "http://#{ip.name}.#{node.name}.#{node.location.name}.graz.funkfeuer.at" %> | <%= link_to "extern", "http://#{ip.name}.#{node.name}.#{node.location.name}.ext.graz.funkfeuer.at" %> | |||||
Smokeping | <% if node.smokeping %>enabled | <% else %>disabled | <% end %>
<%= link_to 'Edit', { :controller =>'node', :action => 'edit' , :id => node.id } %> | <%= link_to 'Destroy', { :controller => 'node', :action => 'destroy', :id => node.id } %>
<% end %>