From b6ca062670b342344df08b53fb216db619ef42bc Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 7 Aug 2016 16:39:42 +0200 Subject: Import legacy manman source Copied from www.ffgraz.net --- app/views/node/_pshow.rhtml | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 app/views/node/_pshow.rhtml (limited to 'app/views/node/_pshow.rhtml') diff --git a/app/views/node/_pshow.rhtml b/app/views/node/_pshow.rhtml new file mode 100644 index 0000000..df7b132 --- /dev/null +++ b/app/views/node/_pshow.rhtml @@ -0,0 +1,54 @@ + +<% @nodes.each do |node| %> + + + + + + + + + + + <% if node.person %> + + + <% end %> + + + + + + + <% node.ip.each do |ip| %> + + + + <% if ip.nets != nil %> + <% if ip.nets.netmask != '255.255.255.255' %> + + <% else %> + + <% end %> + <% else %> + + <% end %> + + + <% end %> + + + + <% if node.smokeping %> + + <% else %> + + <% end %> + +
Name<%= node.name %>
Kommentar<%= node.comment %>
Administrator<%= node.person.email %>
InterfacesNameIPNetmaskLink
<%= ip.name %><%= link_to ip.ip, "http://#{ip.ip}" %><%= ip.nets.netmask %><%= '255.255.0.0' %><%= ip.net_id %><%= 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" %>
Smokepingenableddisabled
+

+ <%= link_to 'Edit', { :controller =>'node', :action => 'edit' , :id => node.id } %> | + <%= link_to 'Destroy', { :controller => 'node', :action => 'destroy', :id => node.id } %> +

+

+<% end %> -- cgit v1.2.1