app/controllers/application_controller.rb
# Return the image name for the list view icon of a db,id pair
Return the image name for the list view icon of a db,id pair
Return the image name for the list view icon of a db id pair
def listicon_image(item, view)
    default = "100/#{(@listicon || view.db).underscore}.png"
    image = case item
            when EventLog, OsProcess
              "100/#{@listicon.downcase}.png"
            when Storage
              "100/piecharts/datastore/#{calculate_pct_img(item.v_free_space_percent_of_total)}.png"
            when MiqRequest
              item.decorate.listicon_image || "100/#{@listicon.downcase}.png"
            when ManageIQ::Providers::CloudManager::AuthKeyPair
              "100/auth_key_pair.png"
            else
              item.decorate.try(:listicon_image) if item.decorator_class?
            end
    list_row_image(image || default, item)
  end
def listicon_image ( item , view ) default = "100/#{(@listicon || view.db).underscore}.png" image = case item when EventLog , OsProcess "100/#{@listicon.downcase}.png" when Storage "100/piecharts/datastore/#{calculate_pct_img(item.v_free_space_percent_of_total)}.png" when MiqRequest item . decorate . listicon_image || "100/#{@listicon.downcase}.png" when ManageIQ :: Providers :: CloudManager :: AuthKeyPair "100/auth_key_pair.png" else item . decorate . try ( :listicon_image ) if item . decorator_class? end list_row_image ( image || default , item ) end
Return the image name for the list view icon of a db,id pair
Return the image name for the list view icon of a db id pair
item
<not_specific>
view
<not_specific>