Merge pull request #5452 from G-Chubinidze/gc_SCI_8488

Archived breadcrumbs fix [SCI-8488] [SCI-8404]
This commit is contained in:
aignatov-bio 2023-05-22 12:54:17 +02:00 committed by GitHub
commit cbecd56122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
<% if @breadcrumbs_items&.length %>
<% @breadcrumbs_items.each { |item| item[:label] = "(A) #{item[:label]}" if item[:archived] }%>
<% archived_exists = @breadcrumbs_items.any? { |item| item[:archived] } %>
<% @breadcrumbs_items.each { |item| item[:label] = "(A) #{item[:label]}" if archived_exists } %>
<% shortened = @breadcrumbs_items.length > 4 %>
<% if shortened %>