mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Archived breadcrumbs fix [SCI-8488] [SCI-8404]
This commit is contained in:
parent
2f372fd871
commit
be7dc74105
1 changed files with 2 additions and 1 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue