Changeset 244
- Timestamp:
- 09/01/08 00:09:24 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nethorus/app/controllers/manage_device_controller.rb
r224 r244 56 56 def device 57 57 58 @subtitle = "Device Management"59 60 58 # Trap the case where an invalid device ID has been specified and throw 61 59 # an error. We don't differentiate between 'device does not exist' and … … 72 70 @l2_interfaces = L2Interface.find(:all, :conditions => ["l2_interfaces.device_id = ?", @device.id.to_s], 73 71 :include => ['l3_interfaces']) 74 end75 72 76 respond_to do |format| 77 format.html 78 format.xml 73 @subtitle = "Device Management: #{@device.hostname}" 79 74 end 80 75 … … 88 83 @device = Device.find(params[:device_id]) 89 84 @partial = "common/device_information" 85 86 @subtitle = "Overview of #{@device.hostname}" 90 87 91 88 if params[:partial] … … 105 102 @partial = "common/all_interfaces" 106 103 104 @subtitle = "All interfaces on #{@device.hostname}" 105 107 106 if params[:partial] 108 107 render :partial => @partial … … 120 119 @device = Device.find(params[:device_id]) 121 120 @partial = "common/events" 121 122 @subtitle = "Event log for #{@device.hostname}" 122 123 123 124 if params[:partial] … … 137 138 @partial = "common/device_hardware_inventory" 138 139 140 @subtitle = "Hardware inventory for #{@device.hostname}" 141 139 142 if params[:partial] 140 143 render :partial => @partial … … 152 155 @device = Device.find(params[:device_id]) 153 156 @partial = "common/device_features" 157 158 @subtitle = "Features on #{@device.hostname}" 154 159 155 160 if params[:partial] … … 169 174 @partial = "common/device_common_functions" 170 175 176 @subtitle = "Functions for #{@device.hostname}" 177 171 178 if params[:partial] 172 179 render :partial => @partial
