Module: BiologicalAssociationsGraphsHelper
Instance Method Summary
collapse
for, #next_records, #parent_records, #previous_records
Instance Method Details
#biological_associations_graph_autocomplete_tag(biological_association_graph) ⇒ Object
9
10
11
12
13
|
# File 'app/helpers/biological_associations_graphs_helper.rb', line 9
def biological_associations_graph_autocomplete_tag(biological_association_graph)
return nil if biological_association_graph.nil?
biological_association_graph_tag(biological_association_graph)
end
|
#biological_associations_graph_link(biological_associations_graph) ⇒ Object
21
22
23
24
25
|
# File 'app/helpers/biological_associations_graphs_helper.rb', line 21
def biological_associations_graph_link(biological_associations_graph)
return nil if biological_associations_graph.nil?
a = biological_associations_graph_tag(biological_associations_graph)
link_to(a.html_safe, biological_associations_graph)
end
|
#biological_associations_graph_tag(biological_associations_graph) ⇒ Object
4
5
6
7
|
# File 'app/helpers/biological_associations_graphs_helper.rb', line 4
def biological_associations_graph_tag(biological_associations_graph)
return nil if biological_associations_graph.nil?
biological_associations_graph.name ||'Nameless graph. id: ' + biological_associations_graph.to_param
end
|
#label_for_biological_associations_graph(biological_associations_graph) ⇒ Object
15
16
17
18
19
|
# File 'app/helpers/biological_associations_graphs_helper.rb', line 15
def label_for_biological_associations_graph(biological_associations_graph)
return nil if biological_associations_graph.nil?
biological_associations_graph.name ||
"Nameless graph. id: #{biological_associations_graph.id}"
end
|