module BiologicalRelationshipsHelper

  def biological_relationship_tag(biological_relationship)
    return nil if biological_relationship.nil?
    [biological_relationship.name, biological_relationship.inverted_name].compact.join(' / ')
  end

  def biological_relationship_link(biological_relationship)
    return nil if biological_relationship.nil?
    link_to(biological_relationship_tag(biological_relationship).html_safe, biological_relationship)
  end

  def biological_relationships_search_form
    render('/biological_relationships/quick_search_form')
  end

end
