Skip to content

Commit

Permalink
optimized concept tree roots display time
Browse files Browse the repository at this point in the history
  • Loading branch information
galviset committed Dec 14, 2023
1 parent 37966ef commit 09b52ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def build_tree(node, string, id, acronym, concept_schemes: nil)
def tree_link_to_concept(child:, ontology_acronym:, active_style:, node: nil, skos: false)
li_id = child.id.eql?('bp_fake_root') ? 'bp_fake_root' : short_uuid
open = child.expanded? ? "class='open'" : ''
icons = child.relation_icon(node)
icons = nil
muted_style = skos && Array(child.isInActiveScheme).empty? ? 'text-muted' : nil
muted_title = muted_style && !child.obsolete? ? "title='is not in a scheme'" : nil
href = ontology_acronym.blank? ? '#' : "/ontologies/#{child.explore.ontology.acronym}/concepts/?id=#{CGI.escape(child.id)}"
href = "/ontologies/#{ontology_acronym}/concepts/?id=#{CGI.escape(child.id)}"
link = <<-EOS
<a id='#{child.id}' data-conceptid='#{child.id}'
data-turbo=true data-turbo-frame='concept_show' href='#{href}'
Expand Down

0 comments on commit 09b52ac

Please sign in to comment.