Changeset 244

Show
Ignore:
Timestamp:
09/01/08 00:09:24 (4 months ago)
Author:
pwh
Message:

Display subtitles for each function.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nethorus/app/controllers/manage_device_controller.rb

    r224 r244  
    5656  def device 
    5757 
    58     @subtitle = "Device Management" 
    59  
    6058    # Trap the case where an invalid device ID has been specified and throw 
    6159    # an error.  We don't differentiate between 'device does not exist' and 
     
    7270      @l2_interfaces = L2Interface.find(:all, :conditions => ["l2_interfaces.device_id = ?", @device.id.to_s], 
    7371                                          :include => ['l3_interfaces']) 
    74     end 
    7572 
    76     respond_to do |format| 
    77       format.html 
    78       format.xml 
     73      @subtitle = "Device Management: #{@device.hostname}" 
    7974    end 
    8075 
     
    8883    @device = Device.find(params[:device_id]) 
    8984    @partial = "common/device_information" 
     85 
     86    @subtitle = "Overview of #{@device.hostname}" 
    9087 
    9188    if params[:partial] 
     
    105102    @partial = "common/all_interfaces" 
    106103 
     104    @subtitle = "All interfaces on #{@device.hostname}" 
     105 
    107106    if params[:partial] 
    108107      render :partial => @partial 
     
    120119    @device = Device.find(params[:device_id]) 
    121120    @partial = "common/events" 
     121 
     122    @subtitle = "Event log for #{@device.hostname}" 
    122123 
    123124    if params[:partial] 
     
    137138    @partial = "common/device_hardware_inventory" 
    138139 
     140    @subtitle = "Hardware inventory for #{@device.hostname}" 
     141 
    139142    if params[:partial] 
    140143      render :partial => @partial 
     
    152155    @device = Device.find(params[:device_id]) 
    153156    @partial = "common/device_features" 
     157 
     158    @subtitle = "Features on #{@device.hostname}" 
    154159 
    155160    if params[:partial] 
     
    169174    @partial = "common/device_common_functions" 
    170175 
     176    @subtitle = "Functions for #{@device.hostname}" 
     177 
    171178    if params[:partial] 
    172179      render :partial => @partial