Module: Crm::LinkChecksHelper

Defined in:
app/helpers/crm/link_checks_helper.rb

Instance Method Summary collapse

Instance Method Details

#link_check_article_links(link_check) ⇒ Object



5
6
7
8
9
10
11
# File 'app/helpers/crm/link_checks_helper.rb', line 5

def link_check_article_links(link_check)
  link_check.articles.map do |article|
    path = polymorphic_article_path(article)
    label = "#{article.article_type_human}: #{article.subject}"
    path ? link_to(label, path) : (:span, label, class: 'text-muted')
  end
end