Module: SequencesHelper
- Defined in:
- app/helpers/sequences_helper.rb
Instance Method Summary collapse
- #sequence_autocomplete_selected_tag(sequence) ⇒ Object
- #sequence_link(sequence) ⇒ Object
- #sequence_tag(sequence) ⇒ Object
- #sequences_search_form ⇒ Object
Instance Method Details
#sequence_autocomplete_selected_tag(sequence) ⇒ Object
7 8 9 |
# File 'app/helpers/sequences_helper.rb', line 7 def sequence_autocomplete_selected_tag(sequence) sequence_tag(sequence) end |
#sequence_link(sequence) ⇒ Object
15 16 17 18 |
# File 'app/helpers/sequences_helper.rb', line 15 def sequence_link(sequence) return nil if sequence.nil? link_to(sequence_tag(sequence).html_safe, sequence) end |
#sequence_tag(sequence) ⇒ Object
2 3 4 5 |
# File 'app/helpers/sequences_helper.rb', line 2 def sequence_tag(sequence) return nil if sequence.nil? sequence.name || sequence.sequence[0..20] + ' ' + tag.span('unnamed', class: [:feedback, 'feedback-thin', 'feedback-info']) end |
#sequences_search_form ⇒ Object
11 12 13 |
# File 'app/helpers/sequences_helper.rb', line 11 def sequences_search_form render('/sequences/quick_search_form') end |