app/controllers/mixins/containers_common_mixin.rb
# Scan all selected or single displayed image(s)
Scan all selected or single displayed image(s)
Scan all selected or single displayed image ( s )
def scan_images
    assert_privileges("image_scan")
    showlist = @lastaction == "show_list"
    images = showlist ? find_checked_items : find_scan_item
    if images.empty?
      add_flash(_("No %{model} were selected for Analysis") % {:model => ui_lookup(:tables => "container_image")},
                :error)
    else
      process_scan_images(images)
    end
    showlist ? show_list : show
    images.count
  end
def scan_images assert_privileges ( "image_scan" ) showlist = @lastaction == "show_list" images = showlist ? find_checked_items : find_scan_item if images . empty? add_flash ( _ ( "No %{model} were selected for Analysis" ) % { :model => ui_lookup ( :tables => "container_image" ) } , :error ) else process_scan_images ( images ) end showlist ? show_list : show images . count end
Scan all selected or single displayed image(s)
Scan all selected or single displayed image ( s )