Changeset 242
- Timestamp:
- 08/31/08 22:39:18 (4 months ago)
- Files:
-
- nethorus/app/controllers/inventory_management_controller.rb (modified) (1 diff)
- nethorus/app/views/common/_all_devices.html.erb (modified) (2 diffs)
- nethorus/app/views/common/_all_interfaces.html.erb (modified) (2 diffs)
- nethorus/app/views/common/_device_information_box.html.erb (modified) (1 diff)
- nethorus/app/views/common/_device_search.html.erb (modified) (1 diff)
- nethorus/app/views/manage/interface.html.erb (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nethorus/app/controllers/inventory_management_controller.rb
r196 r242 29 29 30 30 # Display a list of inventories that may be gathered 31 31 32 32 def index 33 33 34 34 @subtitle = "Inventory Management" 35 35 nethorus/app/views/common/_all_devices.html.erb
r135 r242 2 2 <tr> 3 3 <th>Hostname</th> 4 <th>IP Address</th> 4 5 <th>Site</th> 5 6 <th>Description</th> … … 15 16 </td> 16 17 <td> 18 <%= device.ipv4_address %> 19 </td> 20 <td> 17 21 <%=h format_site(device.site) %> 18 22 </td> nethorus/app/views/common/_all_interfaces.html.erb
r144 r242 22 22 <tr class="<%= cycle('even_row', 'odd_row', :name => 'row_class') %>"> 23 23 <td> 24 <%= link_to l2_interface.ifdescr_short, :controller => "manage ", :action => "interface", :device_id => @device.id, :interface_id => l2_interface.id %>24 <%= link_to l2_interface.ifdescr_short, :controller => "manage_interface", :action => "interface", :device_id => @device.id, :interface_id => l2_interface.id %> 25 25 </td> 26 26 … … 45 45 46 46 <td><tt><%=h format_l2_interface(l2_interface.address) %></tt></td> 47 <td><tt><%=h format_l3_interface (l2_interface.l3_interfaces) %></tt></td>47 <td><tt><%=h format_l3_interfaces(l2_interface) %></tt></td> 48 48 <td><%= number_to_human_size(l2_interface.ifspeed) %></td> 49 49 <td><%= l2_interface.ifmtu %></td> nethorus/app/views/common/_device_information_box.html.erb
r190 r242 1 1 <% unless device.nil? %> 2 <% unless device.device_type.nil? %><%= image_tag("device_types/medium/" + device.device_type + ".png", :class => "device_icon" ) %><% end %> 3 <%= link_to device.hostname, { :controller => 'manage', :action => 'device', :id => device.id } %><br /><%=h device.ipv4_address %> 2 <%= link_to device.hostname, { :controller => 'manage_device', :action => 'index', :id => device.id } %> 4 3 <% end %> nethorus/app/views/common/_device_search.html.erb
r211 r242 6 6 <td> 7 7 <form method="post"> 8 <p>Only devices in <select name="site_id"> 9 <option value="0">all sites</option> 10 <% @sites.each do |site| %> 11 <% if params[:site_id].to_i == site.id %> 12 <option value="<%= site.id %>" selected><%=h site.description %></option> 13 <% else %> 14 <option value="<%= site.id %>"><%=h site.description %></option> 15 <% end %> 16 <% end %> 17 </select>. 8 <p>Only devices in <%= select('search_for', 'site_id', @sites.collect { |site| [ site.description, site.id ] } ) %></p> 18 9 <input type="submit" value="Go" /> 19 10 </p>
