app/controllers/application_controller/ci_processing.rb
# Build the vm detail gtl view
Build the vm detail gtl view
Build the vm detail gtl view
def show_details(db, options = {})  
    association = options[:association]
    conditions  = options[:conditions]
    @gtl_url       = "/#{@db}/#{@listicon.pluralize}/#{@record.id}?"
    @showtype      = "details"
    @display       = "main"
    @no_checkboxes = true
    @showlinks     = true
    @view, @pages = get_view(db,
                             :parent      => @record,
                             :association => association,
                             :conditions  => conditions,
                             :dbname      => "#{@db}item")  
    if @explorer 
      @refresh_partial = "vm_common/#{@showtype}"
      replace_right_cell
    else
      if params[:ppsetting] || params[:entry] || params[:sort_choice]
        replace_gtl_main_div
      else
        render :action => 'show'
      end
    end
  end
def show_details ( db , options = { } ) association = options [ :association ] conditions = options [ :conditions ] @gtl_url = "/#{@db}/#{@listicon.pluralize}/#{@record.id}?" @showtype = "details" @display = "main" @no_checkboxes = true @showlinks = true @view , @pages = get_view ( db , :parent => @record , :association => association , :conditions => conditions , :dbname => "#{@db}item" ) if @explorer @refresh_partial = "vm_common/#{@showtype}" replace_right_cell else if params [ :ppsetting ] || params [ :entry ] || params [ :sort_choice ] replace_gtl_main_div else render :action => 'show' end end end
Build the vm detail gtl view
Build the vm detail gtl view
# Pass in the db, parent vm is in @vm # generate the grid/tile/list url to come back here when gtl buttons are pressed # Get the records into a view & paginator # In explorer? # Came in from outside, use RJS to redraw gtl partial
db
<not_specific>
options
<not_specific>