mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 21:20:08 +08:00
Merge pull request #5452 from G-Chubinidze/gc_SCI_8488
Archived breadcrumbs fix [SCI-8488] [SCI-8404]
This commit is contained in:
commit
cbecd56122
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