Module: ForemanInventoryUploadHostHelper
- Defined in:
 - app/helpers/foreman_inventory_upload_host_helper.rb
 
Instance Method Summary collapse
Instance Method Details
#hits_counts ⇒ Object
      2 3 4  | 
    
      # File 'app/helpers/foreman_inventory_upload_host_helper.rb', line 2 def hits_counts @hits_counts ||= InsightsHit.where(host_id: @hosts).group(:host_id).count end  | 
  
#hits_counts_cell(host) ⇒ Object
      6 7 8 9 10  | 
    
      # File 'app/helpers/foreman_inventory_upload_host_helper.rb', line 6 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" link_to(host_hits, host_link) if host_hits end  |