Skip to content

Commit

Permalink
Don't link to currently selected document in the tree
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarrell committed Dec 11, 2023
1 parent 02c950a commit 450e7dd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
%>
<% end %>
<div class="index_title document-title-heading" data-turbo="false">
<%= helpers.link_to_document document, counter: @counter %>
<% if current_target? %>
<%= document.normalized_title %>
<% else %>
<%= helpers.link_to_document document, counter: @counter %>
<% end %>
<% if document.children? %>
<span class="badge badge-pill bg-secondary badge-secondary al-number-of-children-badge"><%= document.number_of_children %><span class="sr-only visually-hidden"><%= t(:'arclight.views.index.number_of_components', count: document.number_of_children) %></span></span>
<% end %>
Expand Down

0 comments on commit 450e7dd

Please sign in to comment.