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