app/helpers/application_helper.rb
# Return a blank tb if a placeholder is needed for AJAX explorer screens, return nil if no custom toolbar to be shown
Return a blank tb if a placeholder is needed for AJAX explorer screens, return nil if no custom toolbar to be shown
Return a blank tb if a placeholder is needed for AJAX explorer screens return nil if no custom toolbar to be shown
def custom_toolbar_filename
    if %w(ems_cloud ems_cluster ems_infra host miq_template storage ems_network).include?(@layout) 
      return "custom_buttons_tb" if @record && @lastaction == "show" && @display == "main"
    end
    if @explorer && CUSTOM_TOOLBAR_CONTROLLERS.include?(params[:controller])
      if x_tree            
        if x_node == "root" || 
           !@record                                                  
          return "blank_view_tb"
        elsif @display == "main"
          return "custom_buttons_tb"
        else
          return "blank_view_tb"
        end
      end
    end
    nil
  end
def custom_toolbar_filename if %w( ems_cloud ems_cluster ems_infra host miq_template storage ems_network ) . include? ( @layout ) return "custom_buttons_tb" if @record && @lastaction == "show" && @display == "main" end if @explorer && CUSTOM_TOOLBAR_CONTROLLERS . include? ( params [ :controller ] ) if x_tree if x_node == "root" || ! @record return "blank_view_tb" elsif @display == "main" return "custom_buttons_tb" else return "blank_view_tb" end end end nil end
Return a blank tb if a placeholder is needed for AJAX explorer screens, return nil if no custom toolbar to be shown
Return a blank tb if a placeholder is needed for AJAX explorer screens return nil if no custom toolbar to be shown
# Classic CIs # Make sure we have the trees defined # If on a root, create placeholder toolbar #   or no record showing