<% if @name.apc_tree_path.present? %>
  <%= divider %>
  <%= link_to("APC tree #{icon('search')}".html_safe,
            tree_path(query: @name.id.to_s,
                      query_on: 'tree'),
                      tabindex: increment_tab_index,
                      title: "Load the APC tree for this instance.",
                      class: '') %>
<ul class="tree">
<% @name.apc_tree_path.tree_ordered_names.each do |step| %>
  <li>
    <%= link_to(%Q(#{step.full_name}<span class="pull-right">#{step.name_rank.name}</span>).html_safe,
                          search_path(query_string: "id: #{step.id}",query_target: 'names'),
                          tabindex: increment_tab_index,
                          title: "Search for #{step.full_name}",
                          class: '') %>
<% end %>
</ul>
<% end %>



<% if @name.apc_tree_path.present? %>
  <%= divider %>
  <%= link_to("APC tree #{icon('search')}".html_safe,
            tree_path(query: @name.id.to_s,
                      query_on: 'tree'),
                      tabindex: increment_tab_index,
                      title: "Load the APC tree for this instance.",
                      class: 'rebeccapurple') %>
<ul class="tree">
<% @name.apc_tree_path.tree_ordered_names.each do |step| %>
  <li>
    <%= link_to(%Q(#{step.full_name}<span class="pull-right">#{step.name_rank.name}</span>).html_safe,
                          search_path(query_string: "id: #{step.id}",query_target: 'names'),
                          tabindex: increment_tab_index,
                          title: "Search for #{step.full_name}",
                          class: '') %>
<% end %>
</ul>
<% end %>



Make the link to the APC Tree purple so it stands out as a link.
Make the link to the APC Tree purple so it stands out as a link.
