Sha256: 4feffc6a53bc089f36086eec4ea1753c08f084aed192e2ad4d9903f3824c9c93
Contents?: true
Size: 459 Bytes
Versions: 20
Compression:
Stored size: 459 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] host_link = Setting['host_details_ui'] ? "#{host_details_page_path(host)}#/Insights" : "#{host_path(host)}#insights" tag.td class: ['hidden-xs', 'ellipsis', 'text-center'] do link_to(host_hits, host_link) if host_hits end end end
Version data entries
20 entries across 20 versions & 1 rubygems