Module: ContentsHelper

Defined in:
app/helpers/contents_helper.rb

Instance Method Summary (collapse)

Instance Method Details



15
16
17
18
# File 'app/helpers/contents_helper.rb', line 15

def content_link(content)
  return nil if content.nil?
  link_to((content), content)
end

- (Object) contents_search_form



20
21
22
# File 'app/helpers/contents_helper.rb', line 20

def contents_search_form
  render('/contents/quick_search_form')
end

- (Object) taxon_works_content_tag(content)

Note disambiguation from Rails' content_tag()



5
6
7
8
9
10
11
12
13
# File 'app/helpers/contents_helper.rb', line 5

def (content)
  return nil if content.nil?
  (:span, title: content.text) do
    [
      controlled_vocabulary_term_tag(content.topic.metamorphosize),
      otu_tag(content.otu)
    ].join(' - ').html_safe
  end
end