Sha256: b7192a50d9413f70e461fdca96483437f390ff8c041d9048dac3759f27cf37ef

Contents?: true

Size: 358 Bytes

Versions: 39

Compression:

Stored size: 358 Bytes

Contents

module ForemanInventoryUploadHostHelper
  def hits_counts
    @hits_counts ||= InsightsHit.where(host_id: @hosts).group(:host_id).count
  end

  def hits_counts_cell(host)
    host_hits = hits_counts[host.id]
    tag.td class: ['hidden-xs', 'ellipsis', 'text-center'] do
      link_to(host_hits, "#{host_path(host)}#insights") if host_hits
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
foreman_rh_cloud-4.0.36 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-3.0.33 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.35 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-3.0.32 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.32 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.31 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-5.0.31 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-5.0.30 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.30 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-3.0.29 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.29 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-5.0.29 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-3.0.28 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-5.0.28 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.27 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-3.0.26 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.26 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.25.1 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-3.0.25 app/helpers/foreman_inventory_upload_host_helper.rb
foreman_rh_cloud-4.0.25 app/helpers/foreman_inventory_upload_host_helper.rb